#5D259D#5D259D

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

Color values

HEX#5D259D
RGBrgb(93, 37, 157)
HSLhsl(268, 62%, 38%)
HSVhsv(268, 76%, 62%)
CMYKcmyk(40.8%, 76.4%, 0%, 38.4%)
CIE-LABlab(29.62, 48.91, -54.96)
CIE-LCHlch(29.62, 73.57, 311.67°)
OKLaboklab(41.54% 0.089 -0.1571)
OKLCHoklch(41.54% 0.181 299.5)
XYZxyz(11.2600, 6.0845, 32.4729)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D259D #659D25
analogous
#25299D #5D259D #99259D
triadic
#5D259D #9D5D25 #259D5D
tetradic
#5D259D #9D2529 #659D25 #259D99
square
#5D259D #9D2529 #659D25 #259D99
split-complementary
#5D259D #9D9925 #299D25
monochromatic
#220E3A #40196B #5D259D #7A31CE #9A62DA

Accessibility & contrast

On white

9.47
#5D259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D259D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D259D#FFFFFF#000000##FFFFFF
##5D259D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#4E4460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d259d;
/* rgb */ color: rgb(93, 37, 157);
/* oklch */ color: oklch(41.5% 0.181 299.5);
Tailwind
colors: {
  custom: {
    50: '#9166bb',
    500: '#5d259d',
    950: '#000000',
  },
}
SCSS
$custom: #5d259d;
$custom-light: #9166bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d259d",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 268,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41538,
    "c": 0.18054,
    "h": 299.5
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D259D

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

Preview Lab → · Contrast checker → · Palette generator →

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