#B040D3#B040D3

#B040D3 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.226 H 316.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B040D3
RGBrgb(176, 64, 211)
HSLhsl(286, 63%, 54%)
HSVhsv(286, 70%, 83%)
CMYKcmyk(16.6%, 69.7%, 0%, 17.3%)
CIE-LABlab(49.01, 65.78, -54.88)
CIE-LCHlch(49.01, 85.67, 320.16°)
OKLaboklab(58.93% 0.165 -0.1542)
OKLCHoklch(58.93% 0.226 316.9)
XYZxyz(31.4940, 17.6013, 63.3538)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040D3 #63D340
analogous
#6740D3 #B040D3 #D340AD
triadic
#B040D3 #D3B040 #40D3B0
tetradic
#B040D3 #D36740 #63D340 #40ADD3
square
#B040D3 #D36740 #63D340 #40ADD3
split-complementary
#B040D3 #ADD340 #40D367
monochromatic
#651D7C #8E28AE #B040D3 #C572DE #D9A3EA

Accessibility & contrast

On white

4.65
#B040D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B040D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B040D3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040D3#FFFFFF#000000##FFFFFF
##B040D31.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED7
Deuteranopia (green-blind)
#4278D0
Tritanopia (blue-blind)
#AE5D85
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b040d3;
/* rgb */ color: rgb(176, 64, 211);
/* oklch */ color: oklch(58.9% 0.226 316.9);
Tailwind
colors: {
  custom: {
    50: '#cc7ee1',
    500: '#b040d3',
    950: '#000000',
  },
}
SCSS
$custom: #b040d3;
$custom-light: #cc7ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#b040d3",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 285.714,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5893,
    "c": 0.22588,
    "h": 316.9
  },
  "luminance": 0.176
}

Semantic roles & 50–950 ramp

primary
#B040D3
secondary
#A7D798
accent
#E64269
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B040D3

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

Preview Lab → · Contrast checker → · Palette generator →

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