#B040DC#B040DC

#B040DC is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.234 H 314.6°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B040DC
RGBrgb(176, 64, 220)
HSLhsl(283, 69%, 56%)
HSVhsv(283, 71%, 86%)
CMYKcmyk(20%, 70.9%, 0%, 13.7%)
CIE-LABlab(49.58, 67.54, -59.11)
CIE-LCHlch(49.58, 89.75, 318.81°)
OKLaboklab(59.51% 0.1642 -0.1666)
OKLCHoklch(59.51% 0.234 314.6)
XYZxyz(32.6540, 18.0653, 69.4631)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040DC #6CDC40
analogous
#6240DC #B040DC #DC40BA
triadic
#B040DC #DCB040 #40DCB0
tetradic
#B040DC #DC6240 #6CDC40 #40BADC
square
#B040DC #DC6240 #6CDC40 #40BADC
split-complementary
#B040DC #BADC40 #40DC62
monochromatic
#691989 #9123BC #B040DC #C574E5 #DBA7EF

Accessibility & contrast

On white

4.55
#B040DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B040DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B040DC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040DC#FFFFFF#000000##000000
##B040DC1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#3979D9
Tritanopia (blue-blind)
#AC618A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b040dc;
/* rgb */ color: rgb(176, 64, 220);
/* oklch */ color: oklch(59.5% 0.234 314.6);
Tailwind
colors: {
  custom: {
    50: '#cc7ee8',
    500: '#b040dc',
    950: '#000000',
  },
}
SCSS
$custom: #b040dc;
$custom-light: #cc7ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#b040dc",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 283.077,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59514,
    "c": 0.23393,
    "h": 314.6
  },
  "luminance": 0.18064
}

Semantic roles & 50–950 ramp

primary
#B040DC
secondary
#AEDC9B
accent
#EC3C6E
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B040DC

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

Preview Lab → · Contrast checker → · Palette generator →

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