#B04CB2#B04CB2

#B04CB2 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.4% C 0.180 H 326.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B04CB2
RGBrgb(176, 76, 178)
HSLhsl(299, 40%, 50%)
HSVhsv(299, 57%, 70%)
CMYKcmyk(1.1%, 57.3%, 0%, 30.2%)
CIE-LABlab(49.03, 54.47, -35.76)
CIE-LCHlch(49.03, 65.16, 326.72°)
OKLaboklab(58.35% 0.1508 -0.0986)
OKLCHoklch(58.35% 0.18 326.8)
XYZxyz(28.5243, 17.6150, 44.0085)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04CB2 #4EB24C
analogous
#7D4CB2 #B04CB2 #B24C81
triadic
#B04CB2 #B2B04C #4CB2B0
tetradic
#B04CB2 #B27D4C #4EB24C #4C81B2
square
#B04CB2 #B27D4C #4EB24C #4C81B2
split-complementary
#B04CB2 #81B24C #4CB27D
monochromatic
#5B275C #863A87 #B04CB2 #C376C5 #D6A1D7

Accessibility & contrast

On white

4.64
#B04CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B04CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B04CB2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04CB2#FFFFFF#000000##FFFFFF
##B04CB21.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#B55978
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b04cb2;
/* rgb */ color: rgb(176, 76, 178);
/* oklch */ color: oklch(58.4% 0.180 326.8);
Tailwind
colors: {
  custom: {
    50: '#ca84c9',
    500: '#b04cb2',
    950: '#000000',
  },
}
SCSS
$custom: #b04cb2;
$custom-light: #ca84c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b04cb2",
  "rgb": {
    "r": 176,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 298.824,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58351,
    "c": 0.18018,
    "h": 326.8
  },
  "luminance": 0.17613
}

Semantic roles & 50–950 ramp

primary
#B04CB2
secondary
#97C496
accent
#D0585A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B04CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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