#5E2E9C#5E2E9C

#5E2E9C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.169 H 299.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5E2E9C
RGBrgb(94, 46, 156)
HSLhsl(266, 54%, 40%)
HSVhsv(266, 71%, 61%)
CMYKcmyk(39.7%, 70.5%, 0%, 38.8%)
CIE-LABlab(31.19, 44.54, -51.79)
CIE-LCHlch(31.19, 68.31, 310.70°)
OKLaboklab(42.65% 0.0819 -0.1478)
OKLCHoklch(42.65% 0.169 299)
XYZxyz(11.5923, 6.7338, 32.1351)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E9C #6C9C2E
analogous
#2E359C #5E2E9C #952E9C
triadic
#5E2E9C #9C5E2E #2E9C5E
tetradic
#5E2E9C #9C2E35 #6C9C2E #2E9C95
square
#5E2E9C #9C2E35 #6C9C2E #2E9C95
split-complementary
#5E2E9C #9C952E #359C2E
monochromatic
#25123D #42206D #5E2E9C #7B40C7 #9C70D5

Accessibility & contrast

On white

8.95
#5E2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E9C
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E9C#FFFFFF#000000##FFFFFF
##5E2E9C1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#4F4961
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2e9c;
/* rgb */ color: rgb(94, 46, 156);
/* oklch */ color: oklch(42.7% 0.169 299.0);
Tailwind
colors: {
  custom: {
    50: '#916bba',
    500: '#5e2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e9c;
$custom-light: #916bba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e9c",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 266.182,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42651,
    "c": 0.16895,
    "h": 299
  },
  "luminance": 0.06734
}

Semantic roles & 50–950 ramp

primary
#5E2E9C
secondary
#98BC6A
accent
#DE4A9D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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