#5E2F97#5E2F97

#5E2F97 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.162 H 300.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5E2F97
RGBrgb(94, 47, 151)
HSLhsl(267, 53%, 39%)
HSVhsv(267, 69%, 59%)
CMYKcmyk(37.7%, 68.9%, 0%, 40.8%)
CIE-LABlab(30.99, 42.72, -49.07)
CIE-LCHlch(30.99, 65.06, 311.04°)
OKLaboklab(42.38% 0.0816 -0.1398)
OKLCHoklch(42.38% 0.162 300.3)
XYZxyz(11.2172, 6.6470, 29.9642)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F97 #68972F
analogous
#2F3497 #5E2F97 #922F97
triadic
#5E2F97 #975E2F #2F975E
tetradic
#5E2F97 #972F34 #68972F #2F9792
square
#5E2F97 #972F34 #68972F #2F9792
split-complementary
#5E2F97 #97922F #34972F
monochromatic
#24123A #412068 #5E2F97 #7B40C3 #9B6ED2

Accessibility & contrast

On white

9.02
#5E2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5E2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F97
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F97#FFFFFF#000000##FFFFFF
##5E2F971.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#51475F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2f97;
/* rgb */ color: rgb(94, 47, 151);
/* oklch */ color: oklch(42.4% 0.162 300.3);
Tailwind
colors: {
  custom: {
    50: '#906bb6',
    500: '#5e2f97',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f97;
$custom-light: #906bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f97",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 267.115,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42383,
    "c": 0.16185,
    "h": 300.3
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#5E2F97
secondary
#95B968
accent
#DC4C9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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