#B040DD#B040DD

#B040DD is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.6% C 0.235 H 314.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B040DD
RGBrgb(176, 64, 221)
HSLhsl(283, 70%, 56%)
HSVhsv(283, 71%, 87%)
CMYKcmyk(20.4%, 71%, 0%, 13.3%)
CIE-LABlab(49.64, 67.73, -59.58)
CIE-LCHlch(49.64, 90.21, 318.67°)
OKLaboklab(59.58% 0.1641 -0.168)
OKLCHoklch(59.58% 0.235 314.3)
XYZxyz(32.7868, 18.1185, 70.1627)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040DD #6DDD40
analogous
#6140DD #B040DD #DD40BB
triadic
#B040DD #DDB040 #40DDB0
tetradic
#B040DD #DD6140 #6DDD40 #40BBDD
square
#B040DD #DD6140 #6DDD40 #40BBDD
split-complementary
#B040DD #BBDD40 #40DD61
monochromatic
#6A198A #9122BE #B040DD #C574E6 #DBA8EF

Accessibility & contrast

On white

4.54
#B040DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B040DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B040DD
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040DD#FFFFFF#000000##000000
##B040DD1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E1
Deuteranopia (green-blind)
#3779DA
Tritanopia (blue-blind)
#AC618B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b040dd;
/* rgb */ color: rgb(176, 64, 221);
/* oklch */ color: oklch(59.6% 0.235 314.3);
Tailwind
colors: {
  custom: {
    50: '#cc7fe8',
    500: '#b040dd',
    950: '#000000',
  },
}
SCSS
$custom: #b040dd;
$custom-light: #cc7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#b040dd",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 282.803,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5958,
    "c": 0.23483,
    "h": 314.3
  },
  "luminance": 0.18117
}

Semantic roles & 50–950 ramp

primary
#B040DD
secondary
#AFDD9C
accent
#ED3B6E
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B040DD

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

Preview Lab → · Contrast checker → · Palette generator →

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