#5E2F8A#5E2F8A

#5E2F8A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.147 H 304.5°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5E2F8A
RGBrgb(94, 47, 138)
HSLhsl(271, 49%, 36%)
HSVhsv(271, 66%, 54%)
CMYKcmyk(31.9%, 65.9%, 0%, 45.9%)
CIE-LABlab(30.03, 39.35, -42.63)
CIE-LCHlch(30.03, 58.02, 312.71°)
OKLaboklab(41.39% 0.083 -0.1208)
OKLCHoklch(41.39% 0.147 304.5)
XYZxyz(10.2190, 6.2477, 24.7074)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F8A #5B8A2F
analogous
#312F8A #5E2F8A #8A2F89
triadic
#5E2F8A #8A5E2F #2F8A5E
tetradic
#5E2F8A #8A312F #5B8A2F #2F898A
square
#5E2F8A #8A312F #5B8A2F #2F898A
split-complementary
#5E2F8A #898A2F #2F8A31
monochromatic
#20102F #3F1F5C #5E2F8A #7D3FB8 #9B68CC

Accessibility & contrast

On white

9.33
#5E2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F8A
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F8A#FFFFFF#000000##FFFFFF
##5E2F8A1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#154788
Tritanopia (blue-blind)
#564258
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2f8a;
/* rgb */ color: rgb(94, 47, 138);
/* oklch */ color: oklch(41.4% 0.147 304.5);
Tailwind
colors: {
  custom: {
    50: '#8f6bad',
    500: '#5e2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f8a;
$custom-light: #8f6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f8a",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 270.989,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41389,
    "c": 0.1466,
    "h": 304.5
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

primary
#5E2F8A
secondary
#89B362
accent
#D94F92
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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