#B042DB#B042DB

#B042DB is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.6% C 0.231 H 314.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B042DB
RGBrgb(176, 66, 219)
HSLhsl(283, 68%, 56%)
HSVhsv(283, 70%, 86%)
CMYKcmyk(19.6%, 69.9%, 0%, 14.1%)
CIE-LABlab(49.79, 66.56, -58.20)
CIE-LCHlch(49.79, 88.41, 318.83°)
OKLaboklab(59.65% 0.1623 -0.164)
OKLCHoklch(59.65% 0.231 314.7)
XYZxyz(32.6368, 18.2421, 68.8060)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042DB #6DDB42
analogous
#6342DB #B042DB #DB42BA
triadic
#B042DB #DBB042 #42DBB0
tetradic
#B042DB #DB6342 #6DDB42 #42BADB
square
#B042DB #DB6342 #6DDB42 #42BADB
split-complementary
#B042DB #BADB42 #42DB63
monochromatic
#6A1A89 #9124BC #B042DB #C575E5 #DBA9EF

Accessibility & contrast

On white

4.52
#B042DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#B042DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B042DB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042DB#FFFFFF#000000##000000
##B042DB1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#3C79D8
Tritanopia (blue-blind)
#AC628A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b042db;
/* rgb */ color: rgb(176, 66, 219);
/* oklch */ color: oklch(59.6% 0.231 314.7);
Tailwind
colors: {
  custom: {
    50: '#cc7fe7',
    500: '#b042db',
    950: '#000000',
  },
}
SCSS
$custom: #b042db;
$custom-light: #cc7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#b042db",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 283.137,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59646,
    "c": 0.23072,
    "h": 314.7
  },
  "luminance": 0.18241
}

Semantic roles & 50–950 ramp

primary
#B042DB
secondary
#AFDC9D
accent
#EB3D6E
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B042DB

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

Preview Lab → · Contrast checker → · Palette generator →

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