#5F2EA6#5F2EA6

#5F2EA6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.180 H 296.8°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA6
RGBrgb(95, 46, 166)
HSLhsl(265, 57%, 42%)
HSVhsv(265, 72%, 65%)
CMYKcmyk(42.8%, 72.3%, 0%, 34.9%)
CIE-LABlab(32.12, 47.37, -56.32)
CIE-LCHlch(32.12, 73.59, 310.06°)
OKLaboklab(43.59% 0.0815 -0.1611)
OKLCHoklch(43.59% 0.181 296.8)
XYZxyz(12.5774, 7.1398, 36.7845)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA6 #75A62E
analogous
#2E39A6 #5F2EA6 #9B2EA6
triadic
#5F2EA6 #A65F2E #2EA65F
tetradic
#5F2EA6 #A62E39 #75A62E #2EA69B
square
#5F2EA6 #A62E39 #75A62E #2EA69B
split-complementary
#5F2EA6 #A69B2E #39A62E
monochromatic
#281346 #442176 #5F2EA6 #7C46CC #9E76D9

Accessibility & contrast

On white

8.65
#5F2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA6
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA6#FFFFFF#000000##FFFFFF
##5F2EA61.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#4D4C67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2ea6;
/* rgb */ color: rgb(95, 46, 166);
/* oklch */ color: oklch(43.6% 0.180 296.8);
Tailwind
colors: {
  custom: {
    50: '#936bc1',
    500: '#5f2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea6;
$custom-light: #936bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea6",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 264.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43592,
    "c": 0.1805,
    "h": 296.8
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#5F2EA6
secondary
#9FC16F
accent
#E048A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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