#5E2F90#5E2F90

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

Color values

HEX#5E2F90
RGBrgb(94, 47, 144)
HSLhsl(269, 51%, 37%)
HSVhsv(269, 67%, 56%)
CMYKcmyk(34.7%, 67.4%, 0%, 43.5%)
CIE-LABlab(30.46, 40.89, -45.63)
CIE-LCHlch(30.46, 61.27, 311.87°)
OKLaboklab(41.84% 0.0824 -0.1297)
OKLCHoklch(41.84% 0.154 302.4)
XYZxyz(10.6655, 6.4263, 27.0587)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F90 #61902F
analogous
#2F3190 #5E2F90 #8E2F90
triadic
#5E2F90 #905E2F #2F905E
tetradic
#5E2F90 #902F31 #61902F #2F908E
square
#5E2F90 #902F31 #61902F #2F908E
split-complementary
#5E2F90 #908E2F #31902F
monochromatic
#221134 #402062 #5E2F90 #7C3EBE #9B6BCF

Accessibility & contrast

On white

9.19
#5E2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5E2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F90
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F90#FFFFFF#000000##FFFFFF
##5E2F901.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2f90;
/* rgb */ color: rgb(94, 47, 144);
/* oklch */ color: oklch(41.8% 0.154 302.4);
Tailwind
colors: {
  custom: {
    50: '#906bb1',
    500: '#5e2f90',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f90;
$custom-light: #906bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f90",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 269.072,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4184,
    "c": 0.15366,
    "h": 302.4
  },
  "luminance": 0.06426
}

Semantic roles & 50–950 ramp

primary
#5E2F90
secondary
#8FB665
accent
#DA4E96
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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