#5E2F94#5E2F94

#5E2F94 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.158 H 301.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5E2F94
RGBrgb(94, 47, 148)
HSLhsl(268, 52%, 38%)
HSVhsv(268, 68%, 58%)
CMYKcmyk(36.5%, 68.2%, 0%, 42%)
CIE-LABlab(30.76, 41.93, -47.61)
CIE-LCHlch(30.76, 63.44, 311.37°)
OKLaboklab(42.15% 0.082 -0.1355)
OKLCHoklch(42.15% 0.158 301.2)
XYZxyz(10.9766, 6.5508, 28.6974)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F94 #65942F
analogous
#2F3294 #5E2F94 #902F94
triadic
#5E2F94 #945E2F #2F945E
tetradic
#5E2F94 #942F32 #65942F #2F9490
square
#5E2F94 #942F32 #65942F #2F9490
split-complementary
#5E2F94 #94902F #32942F
monochromatic
#231137 #402066 #5E2F94 #7C3EC2 #9B6DD1

Accessibility & contrast

On white

9.09
#5E2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F94
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F94#FFFFFF#000000##FFFFFF
##5E2F941.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#52465D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2f94;
/* rgb */ color: rgb(94, 47, 148);
/* oklch */ color: oklch(42.1% 0.158 301.2);
Tailwind
colors: {
  custom: {
    50: '#906bb4',
    500: '#5e2f94',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f94;
$custom-light: #906bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f94",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 267.921,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.15835,
    "h": 301.2
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#5E2F94
secondary
#92B867
accent
#DB4D99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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