#5D257D#5D257D

#5D257D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.146 H 310.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5D257D
RGBrgb(93, 37, 125)
HSLhsl(278, 54%, 32%)
HSVhsv(278, 70%, 49%)
CMYKcmyk(25.6%, 70.4%, 0%, 51%)
CIE-LABlab(27.11, 41.05, -39.22)
CIE-LCHlch(27.11, 56.78, 316.31°)
OKLaboklab(38.96% 0.0949 -0.1108)
OKLCHoklch(38.96% 0.146 310.6)
XYZxyz(8.8767, 5.1312, 19.9209)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D257D #457D25
analogous
#31257D #5D257D #7D2571
triadic
#5D257D #7D5D25 #257D5D
tetradic
#5D257D #7D3125 #457D25 #25717D
square
#5D257D #7D3125 #457D25 #25717D
split-complementary
#5D257D #717D25 #257D31
monochromatic
#17091F #3A174E #5D257D #8033AC #9F51CB

Accessibility & contrast

On white

10.36
#5D257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D257D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D257D#FFFFFF#000000##FFFFFF
##5D257D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#18417B
Tritanopia (blue-blind)
#59384E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d257d;
/* rgb */ color: rgb(93, 37, 125);
/* oklch */ color: oklch(39.0% 0.146 310.6);
Tailwind
colors: {
  custom: {
    50: '#8e64a3',
    500: '#5d257d',
    950: '#000000',
  },
}
SCSS
$custom: #5d257d;
$custom-light: #8e64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d257d",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 278.182,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38961,
    "c": 0.14587,
    "h": 310.6
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#5D257D
secondary
#72AF4F
accent
#DE4A80
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D257D

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

Preview Lab → · Contrast checker → · Palette generator →

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