#B04EA2#B04EA2

#B04EA2 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.163 H 333.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B04EA2
RGBrgb(176, 78, 162)
HSLhsl(309, 39%, 50%)
HSVhsv(309, 56%, 69%)
CMYKcmyk(0%, 55.7%, 8%, 31%)
CIE-LABlab(48.62, 50.75, -26.98)
CIE-LCHlch(48.62, 57.48, 332.00°)
OKLaboklab(57.81% 0.1459 -0.0735)
OKLCHoklch(57.81% 0.163 333.3)
XYZxyz(27.1505, 17.2894, 36.0826)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04EA2 #4EB05C
analogous
#8D4EB0 #B04EA2 #B04E71
triadic
#B04EA2 #A2B04E #4EA2B0
tetradic
#B04EA2 #B08D4E #4EB05C #4E71B0
square
#B04EA2 #B08D4E #4EB05C #4E71B0
split-complementary
#B04EA2 #71B04E #4EB08D
monochromatic
#5B2854 #863B7B #B04EA2 #C378B8 #D6A2CF

Accessibility & contrast

On white

4.71
#B04EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B04EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B04EA2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04EA2#FFFFFF#000000##FFFFFF
##B04EA21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA5
Deuteranopia (green-blind)
#69799F
Tritanopia (blue-blind)
#B75571
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b04ea2;
/* rgb */ color: rgb(176, 78, 162);
/* oklch */ color: oklch(57.8% 0.163 333.3);
Tailwind
colors: {
  custom: {
    50: '#ca84bd',
    500: '#b04ea2',
    950: '#000000',
  },
}
SCSS
$custom: #b04ea2;
$custom-light: #ca84bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ea2",
  "rgb": {
    "r": 176,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 308.571,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5781,
    "c": 0.16337,
    "h": 333.3
  },
  "luminance": 0.17288
}

Semantic roles & 50–950 ramp

primary
#B04EA2
secondary
#97C39D
accent
#CF6A59
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B04EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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