#5F2EA7#5F2EA7

#5F2EA7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.182 H 296.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA7
RGBrgb(95, 46, 167)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43.1%, 72.5%, 0%, 34.5%)
CIE-LABlab(32.21, 47.63, -56.79)
CIE-LCHlch(32.21, 74.12, 309.99°)
OKLaboklab(43.68% 0.0813 -0.1624)
OKLCHoklch(43.68% 0.182 296.6)
XYZxyz(12.6695, 7.1766, 37.2694)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA7 #76A72E
analogous
#2E39A7 #5F2EA7 #9C2EA7
triadic
#5F2EA7 #A75F2E #2EA75F
tetradic
#5F2EA7 #A72E39 #76A72E #2EA79C
square
#5F2EA7 #A72E39 #76A72E #2EA79C
split-complementary
#5F2EA7 #A79C2E #39A72E
monochromatic
#281447 #442177 #5F2EA7 #7C46CC #9E76D9

Accessibility & contrast

On white

8.62
#5F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2EA7
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA7#FFFFFF#000000##FFFFFF
##5F2EA71.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#4C4D67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2ea7;
/* rgb */ color: rgb(95, 46, 167);
/* oklch */ color: oklch(43.7% 0.182 296.6);
Tailwind
colors: {
  custom: {
    50: '#936bc2',
    500: '#5f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea7;
$custom-light: #936bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea7",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 264.298,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43676,
    "c": 0.18164,
    "h": 296.6
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#5F2EA7
secondary
#A0C170
accent
#E048A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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