#5F2BB4#5F2BB4

#5F2BB4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.199 H 293.9°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5F2BB4
RGBrgb(95, 43, 180)
HSLhsl(263, 61%, 44%)
HSVhsv(263, 76%, 71%)
CMYKcmyk(47.2%, 76.1%, 0%, 29.4%)
CIE-LABlab(32.82, 52.48, -63.56)
CIE-LCHlch(32.82, 82.42, 309.55°)
OKLaboklab(44.46% 0.0809 -0.1823)
OKLCHoklch(44.46% 0.199 293.9)
XYZxyz(13.8191, 7.4555, 43.8821)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BB4 #80B42B
analogous
#2B3BB4 #5F2BB4 #A32BB4
triadic
#5F2BB4 #B45F2B #2BB45F
tetradic
#5F2BB4 #B42B3B #80B42B #2BB4A3
square
#5F2BB4 #B42B3B #80B42B #2BB4A3
split-complementary
#5F2BB4 #B4A32B #3BB42B
monochromatic
#2B1351 #451F83 #5F2BB4 #7D49D3 #A17ADF

Accessibility & contrast

On white

8.43
#5F2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5F2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BB4
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BB4#FFFFFF#000000##FFFFFF
##5F2BB41.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#45506E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2bb4;
/* rgb */ color: rgb(95, 43, 180);
/* oklch */ color: oklch(44.5% 0.199 293.9);
Tailwind
colors: {
  custom: {
    50: '#956acc',
    500: '#5f2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bb4;
$custom-light: #956acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bb4",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 262.774,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44456,
    "c": 0.1994,
    "h": 293.9
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#5F2BB4
secondary
#A8C773
accent
#E543A7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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