#B04EC8#B04EC8

#B04EC8 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.8% C 0.197 H 319.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B04EC8
RGBrgb(176, 78, 200)
HSLhsl(288, 53%, 55%)
HSVhsv(288, 61%, 78%)
CMYKcmyk(12%, 61%, 0%, 21.6%)
CIE-LABlab(50.51, 57.68, -46.17)
CIE-LCHlch(50.51, 73.88, 321.33°)
OKLaboklab(59.81% 0.1497 -0.1288)
OKLCHoklch(59.81% 0.197 319.3)
XYZxyz(31.0529, 18.8504, 56.6352)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EC8 #66C84E
analogous
#734EC8 #B04EC8 #C84EA3
triadic
#B04EC8 #C8B04E #4EC8B0
tetradic
#B04EC8 #C8734E #66C84E #4EA3C8
square
#B04EC8 #C8734E #66C84E #4EA3C8
split-complementary
#B04EC8 #A3C84E #4EC873
monochromatic
#672577 #8F33A5 #B04EC8 #C57DD7 #DAABE5

Accessibility & contrast

On white

4.40
#B04EC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#B04EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04EC8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EC8#FFFFFF#000000##000000
##B04EC81.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F72CC
Deuteranopia (green-blind)
#567CC5
Tritanopia (blue-blind)
#B06284
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b04ec8;
/* rgb */ color: rgb(176, 78, 200);
/* oklch */ color: oklch(59.8% 0.197 319.3);
Tailwind
colors: {
  custom: {
    50: '#cb85d9',
    500: '#b04ec8',
    950: '#000000',
  },
}
SCSS
$custom: #b04ec8;
$custom-light: #cb85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ec8",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 288.197,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59806,
    "c": 0.19749,
    "h": 319.3
  },
  "luminance": 0.18849
}

Semantic roles & 50–950 ramp

primary
#B04EC8
secondary
#A9D39F
accent
#DC4C68
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #B04EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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