#B040D1#B040D1

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

Color values

HEX#B040D1
RGBrgb(176, 64, 209)
HSLhsl(286, 61%, 54%)
HSVhsv(286, 69%, 82%)
CMYKcmyk(15.8%, 69.4%, 0%, 18%)
CIE-LABlab(48.89, 65.40, -53.94)
CIE-LCHlch(48.89, 84.77, 320.49°)
OKLaboklab(58.8% 0.1652 -0.1514)
OKLCHoklch(58.8% 0.224 317.5)
XYZxyz(31.2449, 17.5017, 62.0416)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040D1 #61D140
analogous
#6740D1 #B040D1 #D140A9
triadic
#B040D1 #D1B040 #40D1B0
tetradic
#B040D1 #D16740 #61D140 #40A9D1
square
#B040D1 #D16740 #61D140 #40A9D1
split-complementary
#B040D1 #A9D140 #40D167
monochromatic
#641D79 #8D29AB #B040D1 #C471DD #D9A3E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B040D1#FFFFFF#000000##FFFFFF
##B040D11.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)
#006DD5
Deuteranopia (green-blind)
#4478CE
Tritanopia (blue-blind)
#AF5C84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b040d1;
/* rgb */ color: rgb(176, 64, 209);
/* oklch */ color: oklch(58.8% 0.224 317.5);
Tailwind
colors: {
  custom: {
    50: '#cb7ee0',
    500: '#b040d1',
    950: '#000000',
  },
}
SCSS
$custom: #b040d1;
$custom-light: #cb7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#b040d1",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 286.345,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58803,
    "c": 0.22409,
    "h": 317.5
  },
  "luminance": 0.175
}

Semantic roles & 50–950 ramp

primary
#B040D1
secondary
#A5D597
accent
#E44468
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B040D1

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

Preview Lab → · Contrast checker → · Palette generator →

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