#5D259B#5D259B

#5D259B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.178 H 300.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5D259B
RGBrgb(93, 37, 155)
HSLhsl(268, 61%, 38%)
HSVhsv(268, 76%, 61%)
CMYKcmyk(40%, 76.1%, 0%, 39.2%)
CIE-LABlab(29.45, 48.41, -54.02)
CIE-LCHlch(29.45, 72.53, 311.86°)
OKLaboklab(41.37% 0.0895 -0.1543)
OKLCHoklch(41.37% 0.178 300.1)
XYZxyz(11.0907, 6.0167, 31.5810)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D259B #639B25
analogous
#25289B #5D259B #98259B
triadic
#5D259B #9B5D25 #259B5D
tetradic
#5D259B #9B2528 #639B25 #259B98
square
#5D259B #9B2528 #639B25 #259B98
split-complementary
#5D259B #9B9825 #289B25
monochromatic
#220D38 #3F196A #5D259B #7B31CC #9A61D9

Accessibility & contrast

On white

9.53
#5D259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D259B
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D259B#FFFFFF#000000##FFFFFF
##5D259B1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4F445E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d259b;
/* rgb */ color: rgb(93, 37, 155);
/* oklch */ color: oklch(41.4% 0.178 300.1);
Tailwind
colors: {
  custom: {
    50: '#9166b9',
    500: '#5d259b',
    950: '#000000',
  },
}
SCSS
$custom: #5d259b;
$custom-light: #9166b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d259b",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 268.475,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41366,
    "c": 0.17838,
    "h": 300.1
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#5D259B
secondary
#90BF5D
accent
#E54398
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D259B

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

Preview Lab → · Contrast checker → · Palette generator →

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