#B040CD#B040CD

#B040CD is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.221 H 318.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B040CD
RGBrgb(176, 64, 205)
HSLhsl(288, 59%, 53%)
HSVhsv(288, 69%, 80%)
CMYKcmyk(14.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(48.64, 64.63, -52.03)
CIE-LCHlch(48.64, 82.97, 321.17°)
OKLaboklab(58.55% 0.1654 -0.1458)
OKLCHoklch(58.55% 0.221 318.6)
XYZxyz(30.7558, 17.3061, 59.4661)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040CD #5DCD40
analogous
#6A40CD #B040CD #CD40A3
triadic
#B040CD #CDB040 #40CDB0
tetradic
#B040CD #CD6A40 #5DCD40 #40A3CD
square
#B040CD #CD6A40 #5DCD40 #40A3CD
split-complementary
#B040CD #A3CD40 #40CD6A
monochromatic
#631E74 #8C2BA5 #B040CD #C471DA #D8A1E6

Accessibility & contrast

On white

4.71
#B040CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B040CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040CD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040CD#FFFFFF#000000##FFFFFF
##B040CD1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#B05B82
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b040cd;
/* rgb */ color: rgb(176, 64, 205);
/* oklch */ color: oklch(58.6% 0.221 318.6);
Tailwind
colors: {
  custom: {
    50: '#cb7edd',
    500: '#b040cd',
    950: '#000000',
  },
}
SCSS
$custom: #b040cd;
$custom-light: #cb7edd;
$custom-dark: #000000;
JSON
{
  "hex": "#b040cd",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 287.66,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58551,
    "c": 0.22054,
    "h": 318.6
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#B040CD
secondary
#A2D396
accent
#E24666
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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