#B042CA#B042CA

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

Color values

HEX#B042CA
RGBrgb(176, 66, 202)
HSLhsl(289, 56%, 53%)
HSVhsv(289, 67%, 79%)
CMYKcmyk(12.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(48.75, 63.26, -50.13)
CIE-LCHlch(48.75, 80.71, 321.61°)
OKLaboklab(58.57% 0.1635 -0.1403)
OKLCHoklch(58.57% 0.215 319.4)
XYZxyz(30.5120, 17.3922, 57.6155)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042CA #5CCA42
analogous
#6C42CA #B042CA #CA42A0
triadic
#B042CA #CAB042 #42CAB0
tetradic
#B042CA #CA6C42 #5CCA42 #42A0CA
square
#B042CA #CA6C42 #5CCA42 #42A0CA
split-complementary
#B042CA #A0CA42 #42CA6C
monochromatic
#622072 #8B2DA2 #B042CA #C472D7 #D8A2E5

Accessibility & contrast

On white

4.69
#B042CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B042CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042CA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042CA#FFFFFF#000000##FFFFFF
##B042CA1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086CCE
Deuteranopia (green-blind)
#4C78C7
Tritanopia (blue-blind)
#B05B81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b042ca;
/* rgb */ color: rgb(176, 66, 202);
/* oklch */ color: oklch(58.6% 0.215 319.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fdb',
    500: '#b042ca',
    950: '#000000',
  },
}
SCSS
$custom: #b042ca;
$custom-light: #cb7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b042ca",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 288.529,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58571,
    "c": 0.21541,
    "h": 319.4
  },
  "luminance": 0.17391
}

Semantic roles & 50–950 ramp

primary
#B042CA
secondary
#A2D196
accent
#DF4865
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042CA

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

Preview Lab → · Contrast checker → · Palette generator →

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