#5F2BB8#5F2BB8

#5F2BB8 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.204 H 293.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5F2BB8
RGBrgb(95, 43, 184)
HSLhsl(262, 62%, 45%)
HSVhsv(262, 77%, 72%)
CMYKcmyk(48.4%, 76.6%, 0%, 27.8%)
CIE-LABlab(33.18, 53.53, -65.34)
CIE-LCHlch(33.18, 84.47, 309.32°)
OKLaboklab(44.82% 0.0798 -0.1875)
OKLCHoklch(44.82% 0.204 293)
XYZxyz(14.2325, 7.6209, 46.0592)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BB8 #84B82B
analogous
#2B3DB8 #5F2BB8 #A62BB8
triadic
#5F2BB8 #B85F2B #2BB85F
tetradic
#5F2BB8 #B82B3D #84B82B #2BB8A6
square
#5F2BB8 #B82B3D #84B82B #2BB8A6
split-complementary
#5F2BB8 #B8A62B #3DB82B
monochromatic
#2C1455 #451F86 #5F2BB8 #7E4BD5 #A27DE1

Accessibility & contrast

On white

8.32
#5F2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5F2BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BB8
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BB8#FFFFFF#000000##FFFFFF
##5F2BB81.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#435270
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2bb8;
/* rgb */ color: rgb(95, 43, 184);
/* oklch */ color: oklch(44.8% 0.204 293.0);
Tailwind
colors: {
  custom: {
    50: '#956ace',
    500: '#5f2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bb8;
$custom-light: #956ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bb8",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 262.128,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44816,
    "c": 0.20378,
    "h": 293
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#5F2BB8
secondary
#AAC976
accent
#E543A9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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