#B042CF#B042CF

#B042CF is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.220 H 317.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B042CF
RGBrgb(176, 66, 207)
HSLhsl(287, 59%, 54%)
HSVhsv(287, 68%, 81%)
CMYKcmyk(15%, 68.1%, 0%, 18.8%)
CIE-LABlab(49.05, 64.22, -52.53)
CIE-LCHlch(49.05, 82.96, 320.72°)
OKLaboklab(58.88% 0.1632 -0.1473)
OKLCHoklch(58.88% 0.22 317.9)
XYZxyz(31.1136, 17.6329, 60.7840)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042CF #61CF42
analogous
#6942CF #B042CF #CF42A7
triadic
#B042CF #CFB042 #42CFB0
tetradic
#B042CF #CF6942 #61CF42 #42A7CF
square
#B042CF #CF6942 #61CF42 #42A7CF
split-complementary
#B042CF #A7CF42 #42CF69
monochromatic
#641F78 #8D2BA9 #B042CF #C473DB #D9A4E8

Accessibility & contrast

On white

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

On black

4.53
#B042CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B042CF#FFFFFF#000000##FFFFFF
##B042CF1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#4878CC
Tritanopia (blue-blind)
#AF5D84
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b042cf;
/* rgb */ color: rgb(176, 66, 207);
/* oklch */ color: oklch(58.9% 0.220 317.9);
Tailwind
colors: {
  custom: {
    50: '#cb7fde',
    500: '#b042cf',
    950: '#000000',
  },
}
SCSS
$custom: #b042cf;
$custom-light: #cb7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b042cf",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 286.809,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5888,
    "c": 0.21989,
    "h": 317.9
  },
  "luminance": 0.17632
}

Semantic roles & 50–950 ramp

primary
#B042CF
secondary
#A5D598
accent
#E34568
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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