#5D258F#5D258F

#5D258F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.165 H 303.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5D258F
RGBrgb(93, 37, 143)
HSLhsl(272, 59%, 35%)
HSVhsv(272, 74%, 56%)
CMYKcmyk(35%, 74.1%, 0%, 43.9%)
CIE-LABlab(28.47, 45.41, -48.26)
CIE-LCHlch(28.47, 66.26, 313.26°)
OKLaboklab(40.36% 0.0922 -0.1374)
OKLCHoklch(40.36% 0.165 303.9)
XYZxyz(10.1326, 5.6335, 26.5348)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D258F #578F25
analogous
#28258F #5D258F #8F258C
triadic
#5D258F #8F5D25 #258F5D
tetradic
#5D258F #8F2825 #578F25 #258C8F
square
#5D258F #8F2825 #578F25 #258C8F
split-complementary
#5D258F #8C8F25 #258F28
monochromatic
#1E0C2E #3D185E #5D258F #7D32C0 #9B5AD4

Accessibility & contrast

On white

9.87
#5D258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D258F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D258F#FFFFFF#000000##FFFFFF
##5D258F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#533F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d258f;
/* rgb */ color: rgb(93, 37, 143);
/* oklch */ color: oklch(40.4% 0.165 303.9);
Tailwind
colors: {
  custom: {
    50: '#9065b1',
    500: '#5d258f',
    950: '#000000',
  },
}
SCSS
$custom: #5d258f;
$custom-light: #9065b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d258f",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 271.698,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40362,
    "c": 0.16542,
    "h": 303.9
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#5D258F
secondary
#85B957
accent
#E2468F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D258F

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

Preview Lab → · Contrast checker → · Palette generator →

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