#B04CB5#B04CB5

#B04CB5 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.5% C 0.183 H 325.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B04CB5
RGBrgb(176, 76, 181)
HSLhsl(297, 42%, 50%)
HSVhsv(297, 58%, 71%)
CMYKcmyk(2.8%, 58%, 0%, 29%)
CIE-LABlab(49.18, 55.02, -37.28)
CIE-LCHlch(49.18, 66.45, 325.88°)
OKLaboklab(58.51% 0.1511 -0.103)
OKLCHoklch(58.51% 0.183 325.7)
XYZxyz(28.8288, 17.7368, 45.6122)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04CB5 #51B54C
analogous
#7B4CB5 #B04CB5 #B54C85
triadic
#B04CB5 #B5B04C #4CB5B0
tetradic
#B04CB5 #B57B4C #51B54C #4C85B5
square
#B04CB5 #B57B4C #51B54C #4C85B5
split-complementary
#B04CB5 #85B54C #4CB57B
monochromatic
#5D275F #87398B #B04CB5 #C377C7 #D6A3D9

Accessibility & contrast

On white

4.62
#B04CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B04CB5
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04CB5#FFFFFF#000000##FFFFFF
##B04CB51.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6DB8
Deuteranopia (green-blind)
#6079B2
Tritanopia (blue-blind)
#B45A79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b04cb5;
/* rgb */ color: rgb(176, 76, 181);
/* oklch */ color: oklch(58.5% 0.183 325.7);
Tailwind
colors: {
  custom: {
    50: '#ca84cb',
    500: '#b04cb5',
    950: '#000000',
  },
}
SCSS
$custom: #b04cb5;
$custom-light: #ca84cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b04cb5",
  "rgb": {
    "r": 176,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 297.143,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58509,
    "c": 0.18286,
    "h": 325.7
  },
  "luminance": 0.17735
}

Semantic roles & 50–950 ramp

primary
#B04CB5
secondary
#99C697
accent
#D1565C
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B04CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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