#B04EC2#B04EC2

#B04EC2 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.5% C 0.192 H 321.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B04EC2
RGBrgb(176, 78, 194)
HSLhsl(291, 49%, 53%)
HSVhsv(291, 60%, 76%)
CMYKcmyk(9.3%, 59.8%, 0%, 23.9%)
CIE-LABlab(50.19, 56.52, -43.23)
CIE-LCHlch(50.19, 71.16, 322.59°)
OKLaboklab(59.47% 0.1495 -0.1203)
OKLCHoklch(59.47% 0.192 321.2)
XYZxyz(30.3654, 18.5754, 53.0144)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EC2 #60C24E
analogous
#764EC2 #B04EC2 #C24E9A
triadic
#B04EC2 #C2B04E #4EC2B0
tetradic
#B04EC2 #C2764E #60C24E #4E9AC2
square
#B04EC2 #C2764E #60C24E #4E9AC2
split-complementary
#B04EC2 #9AC24E #4EC276
monochromatic
#64266F #8D369D #B04EC2 #C47CD2 #D9A9E1

Accessibility & contrast

On white

4.45
#B04EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B04EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04EC2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EC2#FFFFFF#000000##000000
##B04EC21.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3570C6
Deuteranopia (green-blind)
#5A7BBF
Tritanopia (blue-blind)
#B26081
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b04ec2;
/* rgb */ color: rgb(176, 78, 194);
/* oklch */ color: oklch(59.5% 0.192 321.2);
Tailwind
colors: {
  custom: {
    50: '#ca85d5',
    500: '#b04ec2',
    950: '#000000',
  },
}
SCSS
$custom: #b04ec2;
$custom-light: #ca85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ec2",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 290.69,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59465,
    "c": 0.19183,
    "h": 321.2
  },
  "luminance": 0.18574
}

Semantic roles & 50–950 ramp

primary
#B04EC2
secondary
#A5CF9D
accent
#D85065
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B04EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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