#5F2EA8#5F2EA8

#5F2EA8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.183 H 296.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA8
RGBrgb(95, 46, 168)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 73%, 66%)
CMYKcmyk(43.5%, 72.6%, 0%, 34.1%)
CIE-LABlab(32.29, 47.89, -57.26)
CIE-LCHlch(32.29, 74.65, 309.91°)
OKLaboklab(43.76% 0.0811 -0.1638)
OKLCHoklch(43.76% 0.183 296.3)
XYZxyz(12.7623, 7.2138, 37.7582)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA8 #77A82E
analogous
#2E3AA8 #5F2EA8 #9C2EA8
triadic
#5F2EA8 #A85F2E #2EA85F
tetradic
#5F2EA8 #A82E3A #77A82E #2EA89C
square
#5F2EA8 #A82E3A #77A82E #2EA89C
split-complementary
#5F2EA8 #A89C2E #3AA82E
monochromatic
#291448 #442178 #5F2EA8 #7C47CD #9E77DA

Accessibility & contrast

On white

8.60
#5F2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA8
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA8#FFFFFF#000000##FFFFFF
##5F2EA81.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#4C4D68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2ea8;
/* rgb */ color: rgb(95, 46, 168);
/* oklch */ color: oklch(43.8% 0.183 296.3);
Tailwind
colors: {
  custom: {
    50: '#936bc3',
    500: '#5f2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea8;
$custom-light: #936bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea8",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 264.098,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43761,
    "c": 0.18277,
    "h": 296.3
  },
  "luminance": 0.07214
}

Semantic roles & 50–950 ramp

primary
#5F2EA8
secondary
#A1C270
accent
#E048A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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