#B042CB#B042CB

#B042CB is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.216 H 319.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B042CB
RGBrgb(176, 66, 203)
HSLhsl(288, 57%, 53%)
HSVhsv(288, 67%, 80%)
CMYKcmyk(13.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(48.81, 63.45, -50.61)
CIE-LCHlch(48.81, 81.16, 321.42°)
OKLaboklab(58.63% 0.1634 -0.1417)
OKLCHoklch(58.63% 0.216 319.1)
XYZxyz(30.6308, 17.4397, 58.2411)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042CB #5DCB42
analogous
#6B42CB #B042CB #CB42A1
triadic
#B042CB #CBB042 #42CBB0
tetradic
#B042CB #CB6B42 #5DCB42 #42A1CB
square
#B042CB #CB6B42 #5DCB42 #42A1CB
split-complementary
#B042CB #A1CB42 #42CB6B
monochromatic
#632073 #8C2DA3 #B042CB #C472D8 #D8A2E5

Accessibility & contrast

On white

4.68
#B042CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#B042CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042CB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042CB#FFFFFF#000000##FFFFFF
##B042CB1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046DCF
Deuteranopia (green-blind)
#4B78C8
Tritanopia (blue-blind)
#B05B81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b042cb;
/* rgb */ color: rgb(176, 66, 203);
/* oklch */ color: oklch(58.6% 0.216 319.1);
Tailwind
colors: {
  custom: {
    50: '#cb7fdb',
    500: '#b042cb',
    950: '#000000',
  },
}
SCSS
$custom: #b042cb;
$custom-light: #cb7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b042cb",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 288.175,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58632,
    "c": 0.21631,
    "h": 319.1
  },
  "luminance": 0.17438
}

Semantic roles & 50–950 ramp

primary
#B042CB
secondary
#A2D297
accent
#E04866
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042CB

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

Preview Lab → · Contrast checker → · Palette generator →

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