#5E2F95#5E2F95

#5E2F95 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.160 H 300.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5E2F95
RGBrgb(94, 47, 149)
HSLhsl(268, 52%, 38%)
HSVhsv(268, 68%, 58%)
CMYKcmyk(36.9%, 68.5%, 0%, 41.6%)
CIE-LABlab(30.84, 42.19, -48.10)
CIE-LCHlch(30.84, 63.98, 311.26°)
OKLaboklab(42.23% 0.0819 -0.1369)
OKLCHoklch(42.23% 0.16 300.9)
XYZxyz(11.0561, 6.5826, 29.1160)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F95 #66952F
analogous
#2F3395 #5E2F95 #912F95
triadic
#5E2F95 #955E2F #2F955E
tetradic
#5E2F95 #952F33 #66952F #2F9591
square
#5E2F95 #952F33 #66952F #2F9591
split-complementary
#5E2F95 #95912F #33952F
monochromatic
#231238 #412066 #5E2F95 #7B3FC2 #9B6DD1

Accessibility & contrast

On white

9.07
#5E2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F95
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F95#FFFFFF#000000##FFFFFF
##5E2F951.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#52465E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2f95;
/* rgb */ color: rgb(94, 47, 149);
/* oklch */ color: oklch(42.2% 0.160 300.9);
Tailwind
colors: {
  custom: {
    50: '#906bb5',
    500: '#5e2f95',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f95;
$custom-light: #906bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f95",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 267.647,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42226,
    "c": 0.15952,
    "h": 300.9
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#5E2F95
secondary
#93B867
accent
#DB4C9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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