#5D259C#5D259C

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

Color values

HEX#5D259C
RGBrgb(93, 37, 156)
HSLhsl(268, 62%, 38%)
HSVhsv(268, 76%, 61%)
CMYKcmyk(40.4%, 76.3%, 0%, 38.8%)
CIE-LABlab(29.54, 48.66, -54.49)
CIE-LCHlch(29.54, 73.05, 311.76°)
OKLaboklab(41.45% 0.0893 -0.1557)
OKLCHoklch(41.45% 0.179 299.8)
XYZxyz(11.1750, 6.0505, 32.0251)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D259C #649C25
analogous
#25299C #5D259C #98259C
triadic
#5D259C #9C5D25 #259C5D
tetradic
#5D259C #9C2529 #649C25 #259C98
square
#5D259C #9C2529 #649C25 #259C98
split-complementary
#5D259C #9C9825 #299C25
monochromatic
#220E39 #40196B #5D259C #7A31CD #9A62DA

Accessibility & contrast

On white

9.50
#5D259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D259C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D259C#FFFFFF#000000##FFFFFF
##5D259C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d259c;
/* rgb */ color: rgb(93, 37, 156);
/* oklch */ color: oklch(41.5% 0.179 299.8);
Tailwind
colors: {
  custom: {
    50: '#9166ba',
    500: '#5d259c',
    950: '#000000',
  },
}
SCSS
$custom: #5d259c;
$custom-light: #9166ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d259c",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 268.235,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41452,
    "c": 0.17947,
    "h": 299.8
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#5D259C
secondary
#91BF5E
accent
#E54399
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D259C

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

Preview Lab → · Contrast checker → · Palette generator →

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