#B042CC#B042CC

#B042CC is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.217 H 318.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B042CC
RGBrgb(176, 66, 204)
HSLhsl(288, 58%, 53%)
HSVhsv(288, 68%, 80%)
CMYKcmyk(13.7%, 67.6%, 0%, 20%)
CIE-LABlab(48.87, 63.64, -51.09)
CIE-LCHlch(48.87, 81.61, 321.24°)
OKLaboklab(58.69% 0.1634 -0.1431)
OKLCHoklch(58.69% 0.217 318.8)
XYZxyz(30.7503, 17.4876, 58.8707)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042CC #5ECC42
analogous
#6B42CC #B042CC #CC42A3
triadic
#B042CC #CCB042 #42CCB0
tetradic
#B042CC #CC6B42 #5ECC42 #42A3CC
square
#B042CC #CC6B42 #5ECC42 #42A3CC
split-complementary
#B042CC #A3CC42 #42CC6B
monochromatic
#631F74 #8C2CA4 #B042CC #C472D9 #D8A2E6

Accessibility & contrast

On white

4.67
#B042CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#B042CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B042CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042CC#FFFFFF#000000##FFFFFF
##B042CC1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#4A78C9
Tritanopia (blue-blind)
#B05B82
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b042cc;
/* rgb */ color: rgb(176, 66, 204);
/* oklch */ color: oklch(58.7% 0.217 318.8);
Tailwind
colors: {
  custom: {
    50: '#cb7fdc',
    500: '#b042cc',
    950: '#000000',
  },
}
SCSS
$custom: #b042cc;
$custom-light: #cb7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b042cc",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 287.826,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58694,
    "c": 0.21721,
    "h": 318.8
  },
  "luminance": 0.17486
}

Semantic roles & 50–950 ramp

primary
#B042CC
secondary
#A3D397
accent
#E14766
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042CC

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

Preview Lab → · Contrast checker → · Palette generator →

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