#B04DB2#B04DB2

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

Color values

HEX#B04DB2
RGBrgb(176, 77, 178)
HSLhsl(299, 40%, 50%)
HSVhsv(299, 57%, 70%)
CMYKcmyk(1.1%, 56.7%, 0%, 30.2%)
CIE-LABlab(49.20, 54.01, -35.49)
CIE-LCHlch(49.20, 64.63, 326.69°)
OKLaboklab(58.48% 0.1495 -0.0979)
OKLCHoklch(58.48% 0.179 326.8)
XYZxyz(28.5937, 17.7539, 44.0316)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04DB2 #4FB24D
analogous
#7E4DB2 #B04DB2 #B24D81
triadic
#B04DB2 #B2B04D #4DB2B0
tetradic
#B04DB2 #B27E4D #4FB24D #4D81B2
square
#B04DB2 #B27E4D #4FB24D #4D81B2
split-complementary
#B04DB2 #81B24D #4DB27E
monochromatic
#5C285D #863B87 #B04DB2 #C378C4 #D6A2D7

Accessibility & contrast

On white

4.61
#B04DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B04DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B04DB2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04DB2#FFFFFF#000000##FFFFFF
##B04DB21.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#B55978
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b04db2;
/* rgb */ color: rgb(176, 77, 178);
/* oklch */ color: oklch(58.5% 0.179 326.8);
Tailwind
colors: {
  custom: {
    50: '#ca84c9',
    500: '#b04db2',
    950: '#000000',
  },
}
SCSS
$custom: #b04db2;
$custom-light: #ca84c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b04db2",
  "rgb": {
    "r": 176,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 298.812,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.58475,
    "c": 0.17868,
    "h": 326.8
  },
  "luminance": 0.17752
}

Semantic roles & 50–950 ramp

primary
#B04DB2
secondary
#98C497
accent
#CF585B
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B04DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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