#5A2385#5A2385

#5A2385 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.156 H 305.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5A2385
RGBrgb(90, 35, 133)
HSLhsl(274, 58%, 33%)
HSVhsv(274, 74%, 52%)
CMYKcmyk(32.3%, 73.7%, 0%, 47.8%)
CIE-LABlab(26.93, 43.27, -44.55)
CIE-LCHlch(26.93, 62.11, 314.17°)
OKLaboklab(38.93% 0.0917 -0.1266)
OKLCHoklch(38.93% 0.156 305.9)
XYZxyz(9.0502, 5.0693, 22.6874)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2385 #4E8523
analogous
#292385 #5A2385 #85237F
triadic
#5A2385 #855A23 #23855A
tetradic
#5A2385 #852923 #4E8523 #237F85
square
#5A2385 #852923 #4E8523 #237F85
split-complementary
#5A2385 #7F8523 #238529
monochromatic
#180924 #391655 #5A2385 #7B30B5 #9951D1

Accessibility & contrast

On white

10.43
#5A2385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A2385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2385
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2385#FFFFFF#000000##FFFFFF
##5A23851.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#523A52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a2385;
/* rgb */ color: rgb(90, 35, 133);
/* oklch */ color: oklch(38.9% 0.156 305.9);
Tailwind
colors: {
  custom: {
    50: '#8d63a9',
    500: '#5a2385',
    950: '#000000',
  },
}
SCSS
$custom: #5a2385;
$custom-light: #8d63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2385",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 273.673,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38935,
    "c": 0.15631,
    "h": 305.9
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#5A2385
secondary
#7CB54F
accent
#E2468A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2385

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

Preview Lab → · Contrast checker → · Palette generator →

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