#B04ECA#B04ECA

#B04ECA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.9% C 0.199 H 318.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B04ECA
RGBrgb(176, 78, 202)
HSLhsl(287, 54%, 55%)
HSVhsv(287, 61%, 79%)
CMYKcmyk(12.9%, 61.4%, 0%, 20.8%)
CIE-LABlab(50.62, 58.07, -47.14)
CIE-LCHlch(50.62, 74.80, 320.93°)
OKLaboklab(59.92% 0.1497 -0.1317)
OKLCHoklch(59.92% 0.199 318.7)
XYZxyz(31.2881, 18.9445, 57.8742)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04ECA #68CA4E
analogous
#724ECA #B04ECA #CA4EA6
triadic
#B04ECA #CAB04E #4ECAB0
tetradic
#B04ECA #CA724E #68CA4E #4EA6CA
square
#B04ECA #CA724E #68CA4E #4EA6CA
split-complementary
#B04ECA #A6CA4E #4ECA72
monochromatic
#672479 #9032A8 #B04ECA #C57DD8 #DAACE6

Accessibility & contrast

On white

4.39
#B04ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#B04ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04ECA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04ECA#FFFFFF#000000##000000
##B04ECA1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CE
Deuteranopia (green-blind)
#557CC7
Tritanopia (blue-blind)
#B06385
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b04eca;
/* rgb */ color: rgb(176, 78, 202);
/* oklch */ color: oklch(59.9% 0.199 318.7);
Tailwind
colors: {
  custom: {
    50: '#cb85db',
    500: '#b04eca',
    950: '#000000',
  },
}
SCSS
$custom: #b04eca;
$custom-light: #cb85db;
$custom-dark: #000000;
JSON
{
  "hex": "#b04eca",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 287.419,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59922,
    "c": 0.19938,
    "h": 318.7
  },
  "luminance": 0.18943
}

Semantic roles & 50–950 ramp

primary
#B04ECA
secondary
#ABD4A0
accent
#DD4B69
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B04ECA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B04ECA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva