#5E2597#5E2597

#5E2597 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.174 H 301.8°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5E2597
RGBrgb(94, 37, 151)
HSLhsl(270, 61%, 37%)
HSVhsv(270, 75%, 59%)
CMYKcmyk(37.7%, 75.5%, 0%, 40.8%)
CIE-LABlab(29.25, 47.58, -51.90)
CIE-LCHlch(29.25, 70.41, 312.52°)
OKLaboklab(41.15% 0.0919 -0.148)
OKLCHoklch(41.15% 0.174 301.8)
XYZxyz(10.8622, 5.9371, 29.8459)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2597 #5E9725
analogous
#252597 #5E2597 #972597
triadic
#5E2597 #975E25 #25975E
tetradic
#5E2597 #972525 #5E9725 #259797
square
#5E2597 #972525 #5E9725 #259797
split-complementary
#5E2597 #979725 #259725
monochromatic
#210D35 #3F1966 #5E2597 #7D31C8 #9B5FD8

Accessibility & contrast

On white

9.60
#5E2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2597
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2597#FFFFFF#000000##FFFFFF
##5E25971.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#52425C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2597;
/* rgb */ color: rgb(94, 37, 151);
/* oklch */ color: oklch(41.1% 0.174 301.8);
Tailwind
colors: {
  custom: {
    50: '#9165b6',
    500: '#5e2597',
    950: '#000000',
  },
}
SCSS
$custom: #5e2597;
$custom-light: #9165b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2597",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 270,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41149,
    "c": 0.17426,
    "h": 301.8
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#5E2597
secondary
#8CBD5B
accent
#E44494
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2597

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

Preview Lab → · Contrast checker → · Palette generator →

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