#5E259C#5E259C

#5E259C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.180 H 300.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5E259C
RGBrgb(94, 37, 156)
HSLhsl(269, 62%, 38%)
HSVhsv(269, 76%, 61%)
CMYKcmyk(39.7%, 76.3%, 0%, 38.8%)
CIE-LABlab(29.67, 48.83, -54.27)
CIE-LCHlch(29.67, 73.01, 311.98°)
OKLaboklab(41.57% 0.0908 -0.155)
OKLCHoklch(41.57% 0.18 300.3)
XYZxyz(11.2769, 6.1030, 32.0299)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E259C #639C25
analogous
#25289C #5E259C #99259C
triadic
#5E259C #9C5E25 #259C5E
tetradic
#5E259C #9C2528 #639C25 #259C99
square
#5E259C #9C2528 #639C25 #259C99
split-complementary
#5E259C #9C9925 #289C25
monochromatic
#220E39 #40196B #5E259C #7C31CD #9B62DA

Accessibility & contrast

On white

9.46
#5E259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E259C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E259C#FFFFFF#000000##FFFFFF
##5E259C1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#50445F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e259c;
/* rgb */ color: rgb(94, 37, 156);
/* oklch */ color: oklch(41.6% 0.180 300.3);
Tailwind
colors: {
  custom: {
    50: '#9266ba',
    500: '#5e259c',
    950: '#000000',
  },
}
SCSS
$custom: #5e259c;
$custom-light: #9266ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e259c",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 268.739,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.17963,
    "h": 300.3
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#5E259C
secondary
#90BF5E
accent
#E54397
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5E259C

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

Preview Lab → · Contrast checker → · Palette generator →

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