#B042CD#B042CD

#B042CD is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.218 H 318.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B042CD
RGBrgb(176, 66, 205)
HSLhsl(287, 58%, 53%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(14.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(48.93, 63.83, -51.57)
CIE-LCHlch(48.93, 82.06, 321.06°)
OKLaboklab(58.76% 0.1633 -0.1445)
OKLCHoklch(58.76% 0.218 318.5)
XYZxyz(30.8707, 17.5357, 59.5044)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042CD #5FCD42
analogous
#6A42CD #B042CD #CD42A4
triadic
#B042CD #CDB042 #42CDB0
tetradic
#B042CD #CD6A42 #5FCD42 #42A4CD
square
#B042CD #CD6A42 #5FCD42 #42A4CD
split-complementary
#B042CD #A4CD42 #42CD6A
monochromatic
#631F76 #8C2CA6 #B042CD #C472DA #D8A3E7

Accessibility & contrast

On white

4.66
#B042CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#B042CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B042CD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042CD#FFFFFF#000000##FFFFFF
##B042CD1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#4978CA
Tritanopia (blue-blind)
#B05C83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b042cd;
/* rgb */ color: rgb(176, 66, 205);
/* oklch */ color: oklch(58.8% 0.218 318.5);
Tailwind
colors: {
  custom: {
    50: '#cb7fdd',
    500: '#b042cd',
    950: '#000000',
  },
}
SCSS
$custom: #b042cd;
$custom-light: #cb7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b042cd",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 287.482,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58755,
    "c": 0.2181,
    "h": 318.5
  },
  "luminance": 0.17534
}

Semantic roles & 50–950 ramp

primary
#B042CD
secondary
#A4D397
accent
#E14667
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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