#5F2CBC#5F2CBC

#5F2CBC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.207 H 292.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5F2CBC
RGBrgb(95, 44, 188)
HSLhsl(261, 62%, 45%)
HSVhsv(261, 77%, 74%)
CMYKcmyk(49.5%, 76.6%, 0%, 26.3%)
CIE-LABlab(33.70, 54.13, -66.85)
CIE-LCHlch(33.70, 86.02, 309.00°)
OKLaboklab(45.29% 0.0779 -0.1919)
OKLCHoklch(45.29% 0.207 292.1)
XYZxyz(14.6945, 7.8646, 48.3110)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CBC #89BC2C
analogous
#2C41BC #5F2CBC #A72CBC
triadic
#5F2CBC #BC5F2C #2CBC5F
tetradic
#5F2CBC #BC2C41 #89BC2C #2CBCA7
square
#5F2CBC #BC2C41 #89BC2C #2CBCA7
split-complementary
#5F2CBC #BCA72C #41BC2C
monochromatic
#2D1559 #46208A #5F2CBC #7F4FD6 #A381E1

Accessibility & contrast

On white

8.16
#5F2CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5F2CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CBC
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CBC#FFFFFF#000000##FFFFFF
##5F2CBC1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#405473
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2cbc;
/* rgb */ color: rgb(95, 44, 188);
/* oklch */ color: oklch(45.3% 0.207 292.1);
Tailwind
colors: {
  custom: {
    50: '#966bd1',
    500: '#5f2cbc',
    950: '#000000',
  },
}
SCSS
$custom: #5f2cbc;
$custom-light: #966bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2cbc",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 188
  },
  "hsl": {
    "h": 261.25,
    "s": 62.069,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4529,
    "c": 0.20715,
    "h": 292.1
  },
  "luminance": 0.07865
}

Semantic roles & 50–950 ramp

primary
#5F2CBC
secondary
#AECA79
accent
#E543AC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F2CBC

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

Preview Lab → · Contrast checker → · Palette generator →

#5F2CBC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva