#5F2BB6#5F2BB6

#5F2BB6 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.202 H 293.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5F2BB6
RGBrgb(95, 43, 182)
HSLhsl(262, 62%, 44%)
HSVhsv(262, 76%, 71%)
CMYKcmyk(47.8%, 76.4%, 0%, 28.6%)
CIE-LABlab(33.00, 53.00, -64.45)
CIE-LCHlch(33.00, 83.44, 309.43°)
OKLaboklab(44.64% 0.0803 -0.1849)
OKLCHoklch(44.64% 0.202 293.5)
XYZxyz(14.0244, 7.5376, 44.9629)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BB6 #82B62B
analogous
#2B3DB6 #5F2BB6 #A52BB6
triadic
#5F2BB6 #B65F2B #2BB65F
tetradic
#5F2BB6 #B62B3D #82B62B #2BB6A5
square
#5F2BB6 #B62B3D #82B62B #2BB6A5
split-complementary
#5F2BB6 #B6A52B #3DB62B
monochromatic
#2B1453 #451F84 #5F2BB6 #7E4AD4 #A17BE0

Accessibility & contrast

On white

8.37
#5F2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5F2BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BB6
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BB6#FFFFFF#000000##FFFFFF
##5F2BB61.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#44516F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2bb6;
/* rgb */ color: rgb(95, 43, 182);
/* oklch */ color: oklch(44.6% 0.202 293.5);
Tailwind
colors: {
  custom: {
    50: '#956acd',
    500: '#5f2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bb6;
$custom-light: #956acd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bb6",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 262.446,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44635,
    "c": 0.20159,
    "h": 293.5
  },
  "luminance": 0.07538
}

Semantic roles & 50–950 ramp

primary
#5F2BB6
secondary
#A9C875
accent
#E543A8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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