#5F2EA5#5F2EA5

#5F2EA5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.179 H 297.1°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA5
RGBrgb(95, 46, 165)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 72%, 65%)
CMYKcmyk(42.4%, 72.1%, 0%, 35.3%)
CIE-LABlab(32.04, 47.10, -55.85)
CIE-LCHlch(32.04, 73.06, 310.14°)
OKLaboklab(43.51% 0.0817 -0.1597)
OKLCHoklch(43.51% 0.179 297.1)
XYZxyz(12.4861, 7.1033, 36.3032)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA5 #74A52E
analogous
#2E39A5 #5F2EA5 #9B2EA5
triadic
#5F2EA5 #A55F2E #2EA55F
tetradic
#5F2EA5 #A52E39 #74A52E #2EA59B
square
#5F2EA5 #A52E39 #74A52E #2EA59B
split-complementary
#5F2EA5 #A59B2E #39A52E
monochromatic
#281345 #432175 #5F2EA5 #7C45CB #9E75D8

Accessibility & contrast

On white

8.68
#5F2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA5
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA5#FFFFFF#000000##FFFFFF
##5F2EA51.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4D4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ea5;
/* rgb */ color: rgb(95, 46, 165);
/* oklch */ color: oklch(43.5% 0.179 297.1);
Tailwind
colors: {
  custom: {
    50: '#936bc1',
    500: '#5f2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea5;
$custom-light: #936bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea5",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 264.706,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43508,
    "c": 0.17936,
    "h": 297.1
  },
  "luminance": 0.07103
}

Semantic roles & 50–950 ramp

primary
#5F2EA5
secondary
#9FC06F
accent
#E048A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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