#B04EB2#B04EB2

#B04EB2 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.177 H 326.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B04EB2
RGBrgb(176, 78, 178)
HSLhsl(299, 39%, 50%)
HSVhsv(299, 56%, 70%)
CMYKcmyk(1.1%, 56.2%, 0%, 30.2%)
CIE-LABlab(49.37, 53.54, -35.22)
CIE-LCHlch(49.37, 64.09, 326.66°)
OKLaboklab(58.6% 0.1482 -0.0971)
OKLCHoklch(58.6% 0.177 326.8)
XYZxyz(28.6643, 17.8949, 44.0551)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EB2 #50B24E
analogous
#7E4EB2 #B04EB2 #B24E82
triadic
#B04EB2 #B2B04E #4EB2B0
tetradic
#B04EB2 #B27E4E #50B24E #4E82B2
square
#B04EB2 #B27E4E #50B24E #4E82B2
split-complementary
#B04EB2 #82B24E #4EB27E
monochromatic
#5C295D #863B88 #B04EB2 #C379C5 #D6A3D7

Accessibility & contrast

On white

4.59
#B04EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#B04EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B04EB2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EB2#FFFFFF#000000##FFFFFF
##B04EB21.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#B55A79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b04eb2;
/* rgb */ color: rgb(176, 78, 178);
/* oklch */ color: oklch(58.6% 0.177 326.8);
Tailwind
colors: {
  custom: {
    50: '#ca85c9',
    500: '#b04eb2',
    950: '#000000',
  },
}
SCSS
$custom: #b04eb2;
$custom-light: #ca85c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b04eb2",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 298.8,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58601,
    "c": 0.17716,
    "h": 326.8
  },
  "luminance": 0.17893
}

Semantic roles & 50–950 ramp

primary
#B04EB2
secondary
#98C498
accent
#CF595B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B04EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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