#B40CDB#B40CDB

#B40CDB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.9% C 0.272 H 317.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B40CDB
RGBrgb(180, 12, 219)
HSLhsl(289, 90%, 45%)
HSVhsv(289, 95%, 86%)
CMYKcmyk(17.8%, 94.5%, 0%, 14.1%)
CIE-LABlab(45.75, 80.73, -64.70)
CIE-LCHlch(45.75, 103.46, 321.29°)
OKLaboklab(56.93% 0.2013 -0.1826)
OKLCHoklch(56.93% 0.272 317.8)
XYZxyz(31.7382, 15.0823, 68.2435)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B40CDB #33DB0C
analogous
#4D0CDB #B40CDB #DB0C9A
triadic
#B40CDB #DBB40C #0CDBB4
tetradic
#B40CDB #DB4D0C #33DB0C #0C9ADB
square
#B40CDB #DB4D0C #33DB0C #0C9ADB
split-complementary
#B40CDB #9ADB0C #0CDB4D
monochromatic
#550667 #8409A1 #B40CDB #CF31F4 #DC6BF7

Accessibility & contrast

On white

5.23
#B40CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B40CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B40CDB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B40CDB#FFFFFF#000000##FFFFFF
##B40CDB1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#1871D7
Tritanopia (blue-blind)
#B24C81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b40cdb;
/* rgb */ color: rgb(180, 12, 219);
/* oklch */ color: oklch(56.9% 0.272 317.8);
Tailwind
colors: {
  custom: {
    50: '#d06ee7',
    500: '#b40cdb',
    950: '#000000',
  },
}
SCSS
$custom: #b40cdb;
$custom-light: #d06ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#b40cdb",
  "rgb": {
    "r": 180,
    "g": 12,
    "b": 219
  },
  "hsl": {
    "h": 288.696,
    "s": 89.61,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56925,
    "c": 0.27179,
    "h": 317.8
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#B40CDB
secondary
#7DDC67
accent
#FF2951
background
#FDF7FE
surface
#FAEDFD
border
#D3C8D5
text
#150916
muted
#837B84

Preview Lab

Preview with #B40CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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