#5D259F#5D259F

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

Color values

HEX#5D259F
RGBrgb(93, 37, 159)
HSLhsl(268, 62%, 38%)
HSVhsv(268, 77%, 62%)
CMYKcmyk(41.5%, 76.7%, 0%, 37.6%)
CIE-LABlab(29.80, 49.42, -55.90)
CIE-LCHlch(29.80, 74.61, 311.48°)
OKLaboklab(41.71% 0.0885 -0.1598)
OKLCHoklch(41.71% 0.183 299)
XYZxyz(11.4322, 6.1533, 33.3796)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D259F #679F25
analogous
#252A9F #5D259F #9A259F
triadic
#5D259F #9F5D25 #259F5D
tetradic
#5D259F #9F252A #679F25 #259F9A
square
#5D259F #9F252A #679F25 #259F9A
split-complementary
#5D259F #9F9A25 #2A9F25
monochromatic
#230E3C #40196D #5D259F #7A32CF #9A64DB

Accessibility & contrast

On white

9.41
#5D259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D259F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D259F#FFFFFF#000000##FFFFFF
##5D259F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4D4561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d259f;
/* rgb */ color: rgb(93, 37, 159);
/* oklch */ color: oklch(41.7% 0.183 299.0);
Tailwind
colors: {
  custom: {
    50: '#9166bc',
    500: '#5d259f',
    950: '#000000',
  },
}
SCSS
$custom: #5d259f;
$custom-light: #9166bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d259f",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 267.541,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41712,
    "c": 0.18269,
    "h": 299
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#5D259F
secondary
#94C05F
accent
#E5429B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D259F

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

Preview Lab → · Contrast checker → · Palette generator →

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