#5E2F9C#5E2F9C

#5E2F9C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.168 H 298.8°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5E2F9C
RGBrgb(94, 47, 156)
HSLhsl(266, 54%, 40%)
HSVhsv(266, 70%, 61%)
CMYKcmyk(39.7%, 69.9%, 0%, 38.8%)
CIE-LABlab(31.38, 44.03, -51.49)
CIE-LCHlch(31.38, 67.75, 310.53°)
OKLaboklab(42.78% 0.0808 -0.1469)
OKLCHoklch(42.78% 0.168 298.8)
XYZxyz(11.6318, 6.8129, 32.1482)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F9C #6D9C2F
analogous
#2F369C #5E2F9C #952F9C
triadic
#5E2F9C #9C5E2F #2F9C5E
tetradic
#5E2F9C #9C2F36 #6D9C2F #2F9C95
square
#5E2F9C #9C2F36 #6D9C2F #2F9C95
split-complementary
#5E2F9C #9C952F #369C2F
monochromatic
#25133E #42216D #5E2F9C #7B42C6 #9C71D4

Accessibility & contrast

On white

8.89
#5E2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F9C
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F9C#FFFFFF#000000##FFFFFF
##5E2F9C1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#4F4962
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2f9c;
/* rgb */ color: rgb(94, 47, 156);
/* oklch */ color: oklch(42.8% 0.168 298.8);
Tailwind
colors: {
  custom: {
    50: '#916bba',
    500: '#5e2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f9c;
$custom-light: #916bba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f9c",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 265.872,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.16767,
    "h": 298.8
  },
  "luminance": 0.06813
}

Semantic roles & 50–950 ramp

primary
#5E2F9C
secondary
#99BC6B
accent
#DD4B9E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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