#5D259E#5D259E

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

Color values

HEX#5D259E
RGBrgb(93, 37, 158)
HSLhsl(268, 62%, 38%)
HSVhsv(268, 77%, 62%)
CMYKcmyk(41.1%, 76.6%, 0%, 38%)
CIE-LABlab(29.71, 49.16, -55.43)
CIE-LCHlch(29.71, 74.09, 311.57°)
OKLaboklab(41.63% 0.0888 -0.1584)
OKLCHoklch(41.63% 0.182 299.3)
XYZxyz(11.3458, 6.1188, 32.9244)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D259E #669E25
analogous
#25299E #5D259E #99259E
triadic
#5D259E #9E5D25 #259E5D
tetradic
#5D259E #9E2529 #669E25 #259E99
square
#5D259E #9E2529 #669E25 #259E99
split-complementary
#5D259E #9E9925 #299E25
monochromatic
#230E3B #40196C #5D259E #7A31CF #9A63DA

Accessibility & contrast

On white

9.44
#5D259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D259E
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D259E#FFFFFF#000000##FFFFFF
##5D259E1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d259e;
/* rgb */ color: rgb(93, 37, 158);
/* oklch */ color: oklch(41.6% 0.182 299.3);
Tailwind
colors: {
  custom: {
    50: '#9166bc',
    500: '#5d259e',
    950: '#000000',
  },
}
SCSS
$custom: #5d259e;
$custom-light: #9166bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d259e",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 267.769,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41625,
    "c": 0.18162,
    "h": 299.3
  },
  "luminance": 0.06119
}

Semantic roles & 50–950 ramp

primary
#5D259E
secondary
#93C05F
accent
#E5439A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D259E

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

Preview Lab → · Contrast checker → · Palette generator →

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