#5E259B#5E259B

#5E259B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.179 H 300.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5E259B
RGBrgb(94, 37, 155)
HSLhsl(269, 61%, 38%)
HSVhsv(269, 76%, 61%)
CMYKcmyk(39.4%, 76.1%, 0%, 39.2%)
CIE-LABlab(29.59, 48.58, -53.80)
CIE-LCHlch(29.59, 72.49, 312.08°)
OKLaboklab(41.49% 0.091 -0.1536)
OKLCHoklch(41.49% 0.179 300.6)
XYZxyz(11.1926, 6.0693, 31.5858)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E259B #629B25
analogous
#25279B #5E259B #99259B
triadic
#5E259B #9B5E25 #259B5E
tetradic
#5E259B #9B2527 #629B25 #259B99
square
#5E259B #9B2527 #629B25 #259B99
split-complementary
#5E259B #9B9925 #279B25
monochromatic
#220D38 #40196A #5E259B #7C31CC #9B61D9

Accessibility & contrast

On white

9.49
#5E259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E259B
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E259B#FFFFFF#000000##FFFFFF
##5E259B1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#50435E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e259b;
/* rgb */ color: rgb(94, 37, 155);
/* oklch */ color: oklch(41.5% 0.179 300.6);
Tailwind
colors: {
  custom: {
    50: '#9266b9',
    500: '#5e259b',
    950: '#000000',
  },
}
SCSS
$custom: #5e259b;
$custom-light: #9266b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e259b",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 268.983,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41488,
    "c": 0.17855,
    "h": 300.6
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E259B

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

Preview Lab → · Contrast checker → · Palette generator →

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