#5F2E90#5F2E90

#5F2E90 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.155 H 303.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5F2E90
RGBrgb(95, 46, 144)
HSLhsl(270, 52%, 37%)
HSVhsv(270, 68%, 56%)
CMYKcmyk(34%, 68.1%, 0%, 43.5%)
CIE-LABlab(30.40, 41.64, -45.73)
CIE-LCHlch(30.40, 61.85, 312.32°)
OKLaboklab(41.82% 0.0851 -0.1299)
OKLCHoklch(41.82% 0.155 303.2)
XYZxyz(10.7292, 6.4005, 27.0503)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E90 #5F902E
analogous
#2E2E90 #5F2E90 #902E90
triadic
#5F2E90 #905F2E #2E905F
tetradic
#5F2E90 #902E2E #5F902E #2E9090
square
#5F2E90 #902E2E #5F902E #2E9090
split-complementary
#5F2E90 #90902E #2E902E
monochromatic
#221033 #401F62 #5F2E90 #7E3DBE #9C69CF

Accessibility & contrast

On white

9.21
#5F2E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F2E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E90
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E90#FFFFFF#000000##FFFFFF
##5F2E901.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004793
Deuteranopia (green-blind)
#06478E
Tritanopia (blue-blind)
#55445B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2e90;
/* rgb */ color: rgb(95, 46, 144);
/* oklch */ color: oklch(41.8% 0.155 303.2);
Tailwind
colors: {
  custom: {
    50: '#916ab1',
    500: '#5f2e90',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e90;
$custom-light: #916ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e90",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 270,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41823,
    "c": 0.15527,
    "h": 303.2
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#5F2E90
secondary
#8DB664
accent
#DB4D94
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E90

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

Preview Lab → · Contrast checker → · Palette generator →

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