#B18AFA

A color in the Violet family

#b18afa is a color in the Violet family: RGB(177, 138, 250), HSL(261°, 92%, 76%), CMYK(29%, 45%, 0%, 2%). Closest named color: mediumpurple. Contrast is 2.66:1 on white and 7.89:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b18afa
RGBrgb(177 138 250)
RGB (legacy)rgb(177, 138, 250)
RGB %rgb(69% 54% 98%)
HSLhsl(261 92% 76%)
HSV / HSBhsv(261, 45%, 98%)
HWBhwb(261 54% 2%)
CMYKcmyk(29%, 45%, 0%, 2%)
CIELAB (D50)lab(64.8 32.64 -51.23)
LCHlch(64.8 60.74 302.5)
OKLaboklab(0.7161 0.0766 -0.1424)
OKLCHoklch(0.7161 0.1617 298.28)
Decimal11635450

Properties

Color ToneViolet
Closest named colormediumpurple ΔE 8.9
Closest web-safe color#9999ff
Hue261°
Saturation (HSL / HSV)92% / 45%
Lightness (HSL)76%
Brightness or Value (HSV)98%
Luminance (Rec.601 / Rec.709)64% / 61%
Relative luminance (WCAG)0.3443
Red / Green / Blue177 / 138 / 250

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.66:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
7.89:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 51.6 / -50.3 · As background with white / black text: Lc -56.8 / 52.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #b18afa;
  --color-brand-oklch: oklch(71.61% 0.1617 298.28);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(177 138 250 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b18afa] text-[#b18afa] border-[#b18afa]">