#5A258D#5A258D

#5A258D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.163 H 302.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5A258D
RGBrgb(90, 37, 141)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(36.2%, 73.8%, 0%, 44.7%)
CIE-LABlab(27.90, 44.31, -47.96)
CIE-LCHlch(27.90, 65.30, 312.74°)
OKLaboklab(39.82% 0.0882 -0.1366)
OKLCHoklch(39.82% 0.163 302.8)
XYZxyz(9.6846, 5.4199, 25.7301)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A258D #588D25
analogous
#26258D #5A258D #8D258C
triadic
#5A258D #8D5A25 #258D5A
tetradic
#5A258D #8D2625 #588D25 #258C8D
square
#5A258D #8D2625 #588D25 #258C8D
split-complementary
#5A258D #8C8D25 #258D26
monochromatic
#1C0C2C #3B185D #5A258D #7932BD #9759D3

Accessibility & contrast

On white

10.08
#5A258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5A258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A258D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A258D#FFFFFF#000000##FFFFFF
##5A258D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#503E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a258d;
/* rgb */ color: rgb(90, 37, 141);
/* oklch */ color: oklch(39.8% 0.163 302.8);
Tailwind
colors: {
  custom: {
    50: '#8d65af',
    500: '#5a258d',
    950: '#000000',
  },
}
SCSS
$custom: #5a258d;
$custom-light: #8d65af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a258d",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 270.577,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3982,
    "c": 0.16258,
    "h": 302.8
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#5A258D
secondary
#86B856
accent
#E24692
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A258D

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

Preview Lab → · Contrast checker → · Palette generator →

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