#5E259E#5E259E

#5E259E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.182 H 299.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5E259E
RGBrgb(94, 37, 158)
HSLhsl(268, 62%, 38%)
HSVhsv(268, 77%, 62%)
CMYKcmyk(40.5%, 76.6%, 0%, 38%)
CIE-LABlab(29.84, 49.34, -55.21)
CIE-LCHlch(29.84, 74.04, 311.78°)
OKLaboklab(41.75% 0.0903 -0.1578)
OKLCHoklch(41.75% 0.182 299.8)
XYZxyz(11.4477, 6.1713, 32.9292)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E259E #659E25
analogous
#25299E #5E259E #9A259E
triadic
#5E259E #9E5E25 #259E5E
tetradic
#5E259E #9E2529 #659E25 #259E9A
square
#5E259E #9E2529 #659E25 #259E9A
split-complementary
#5E259E #9E9A25 #299E25
monochromatic
#230E3B #40196C #5E259E #7C31CF #9B63DA

Accessibility & contrast

On white

9.40
#5E259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5E259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E259E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E259E#FFFFFF#000000##FFFFFF
##5E259E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#4F4560
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e259e;
/* rgb */ color: rgb(94, 37, 158);
/* oklch */ color: oklch(41.7% 0.182 299.8);
Tailwind
colors: {
  custom: {
    50: '#9266bc',
    500: '#5e259e',
    950: '#000000',
  },
}
SCSS
$custom: #5e259e;
$custom-light: #9266bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e259e",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 268.264,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41745,
    "c": 0.18176,
    "h": 299.8
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#5E259E
secondary
#92C05F
accent
#E54399
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E259E

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

Preview Lab → · Contrast checker → · Palette generator →

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