#5E2F98#5E2F98

#5E2F98 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.163 H 300.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5E2F98
RGBrgb(94, 47, 152)
HSLhsl(267, 53%, 39%)
HSVhsv(267, 69%, 60%)
CMYKcmyk(38.2%, 69.1%, 0%, 40.4%)
CIE-LABlab(31.07, 42.98, -49.56)
CIE-LCHlch(31.07, 65.60, 310.93°)
OKLaboklab(42.46% 0.0814 -0.1412)
OKLCHoklch(42.46% 0.163 300)
XYZxyz(11.2987, 6.6796, 30.3937)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F98 #69982F
analogous
#2F3598 #5E2F98 #932F98
triadic
#5E2F98 #985E2F #2F985E
tetradic
#5E2F98 #982F35 #69982F #2F9893
square
#5E2F98 #982F35 #69982F #2F9893
split-complementary
#5E2F98 #98932F #35982F
monochromatic
#24123B #412169 #5E2F98 #7B40C4 #9B6FD2

Accessibility & contrast

On white

8.99
#5E2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5E2F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F98
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F98#FFFFFF#000000##FFFFFF
##5E2F981.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#51485F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2f98;
/* rgb */ color: rgb(94, 47, 152);
/* oklch */ color: oklch(42.5% 0.163 300.0);
Tailwind
colors: {
  custom: {
    50: '#916bb7',
    500: '#5e2f98',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f98;
$custom-light: #916bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f98",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 266.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42462,
    "c": 0.16302,
    "h": 300
  },
  "luminance": 0.0668
}

Semantic roles & 50–950 ramp

primary
#5E2F98
secondary
#96BA69
accent
#DC4C9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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