#5E2689#5E2689

#5E2689 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.158 H 306.4°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5E2689
RGBrgb(94, 38, 137)
HSLhsl(274, 57%, 34%)
HSVhsv(274, 72%, 54%)
CMYKcmyk(31.4%, 72.3%, 0%, 46.3%)
CIE-LABlab(28.31, 43.67, -44.79)
CIE-LCHlch(28.31, 62.56, 314.27°)
OKLaboklab(40.13% 0.0936 -0.1272)
OKLCHoklch(40.13% 0.158 306.4)
XYZxyz(9.8236, 5.5722, 24.2201)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2689 #518926
analogous
#2D2689 #5E2689 #892683
triadic
#5E2689 #895E26 #26895E
tetradic
#5E2689 #892D26 #518926 #268389
square
#5E2689 #892D26 #518926 #268389
split-complementary
#5E2689 #838926 #26892D
monochromatic
#1C0B29 #3D1959 #5E2689 #7F33B9 #9D59D1

Accessibility & contrast

On white

9.93
#5E2689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E2689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2689
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2689#FFFFFF#000000##FFFFFF
##5E26891.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#034387
Tritanopia (blue-blind)
#573D55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2689;
/* rgb */ color: rgb(94, 38, 137);
/* oklch */ color: oklch(40.1% 0.158 306.4);
Tailwind
colors: {
  custom: {
    50: '#9065ac',
    500: '#5e2689',
    950: '#000000',
  },
}
SCSS
$custom: #5e2689;
$custom-light: #9065ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2689",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 273.939,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.15789,
    "h": 306.4
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#5E2689
secondary
#7FB655
accent
#E0488A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2689

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

Preview Lab → · Contrast checker → · Palette generator →

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