#B040C2#B040C2

#B040C2 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.211 H 321.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B040C2
RGBrgb(176, 64, 194)
HSLhsl(292, 52%, 51%)
HSVhsv(292, 67%, 76%)
CMYKcmyk(9.3%, 67%, 0%, 23.9%)
CIE-LABlab(48.00, 62.58, -46.70)
CIE-LCHlch(48.00, 78.08, 323.26°)
OKLaboklab(57.88% 0.1658 -0.1303)
OKLCHoklch(57.88% 0.211 321.8)
XYZxyz(29.4745, 16.7935, 52.7174)
Luminance0.1679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040C2 #52C240
analogous
#6F40C2 #B040C2 #C24093
triadic
#B040C2 #C2B040 #40C2B0
tetradic
#B040C2 #C26F40 #52C240 #4093C2
square
#B040C2 #C26F40 #52C240 #4093C2
split-complementary
#B040C2 #93C240 #40C26F
monochromatic
#5D2167 #873095 #B040C2 #C36ED1 #D69DE0

Accessibility & contrast

On white

4.82
#B040C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B040C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B040C2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040C2#FFFFFF#000000##FFFFFF
##B040C21.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196AC6
Deuteranopia (green-blind)
#5076BF
Tritanopia (blue-blind)
#B2567C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b040c2;
/* rgb */ color: rgb(176, 64, 194);
/* oklch */ color: oklch(57.9% 0.211 321.8);
Tailwind
colors: {
  custom: {
    50: '#cb7ed5',
    500: '#b040c2',
    950: '#000000',
  },
}
SCSS
$custom: #b040c2;
$custom-light: #cb7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#b040c2",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 291.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57882,
    "c": 0.21088,
    "h": 321.8
  },
  "luminance": 0.16792
}

Semantic roles & 50–950 ramp

primary
#B040C2
secondary
#9ACC92
accent
#DB4D60
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #B040C2

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

Preview Lab → · Contrast checker → · Palette generator →

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