#B040D9#B040D9

#B040D9 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.231 H 315.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#B040D9
RGBrgb(176, 64, 217)
HSLhsl(284, 67%, 55%)
HSVhsv(284, 71%, 85%)
CMYKcmyk(18.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(49.38, 66.95, -57.71)
CIE-LCHlch(49.38, 88.39, 319.24°)
OKLaboklab(59.32% 0.1645 -0.1625)
OKLCHoklch(59.32% 0.231 315.4)
XYZxyz(32.2603, 17.9078, 67.3894)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040D9 #69D940
analogous
#6440D9 #B040D9 #D940B5
triadic
#B040D9 #D9B040 #40D9B0
tetradic
#B040D9 #D96440 #69D940 #40B5D9
square
#B040D9 #D96440 #69D940 #40B5D9
split-complementary
#B040D9 #B5D940 #40D964
monochromatic
#681A84 #9024B7 #B040D9 #C573E3 #DAA6ED

Accessibility & contrast

On white

4.58
#B040D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#B040D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B040D9
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040D9#FFFFFF#000000##000000
##B040D91.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#3C78D6
Tritanopia (blue-blind)
#AD6089
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b040d9;
/* rgb */ color: rgb(176, 64, 217);
/* oklch */ color: oklch(59.3% 0.231 315.4);
Tailwind
colors: {
  custom: {
    50: '#cc7ee5',
    500: '#b040d9',
    950: '#000000',
  },
}
SCSS
$custom: #b040d9;
$custom-light: #cc7ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#b040d9",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 283.922,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59317,
    "c": 0.23124,
    "h": 315.4
  },
  "luminance": 0.17907
}

Semantic roles & 50–950 ramp

primary
#B040D9
secondary
#ACDA9A
accent
#EA3E6C
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B040D9

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

Preview Lab → · Contrast checker → · Palette generator →

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