#5A258B#5A258B

#5A258B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.160 H 303.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5A258B
RGBrgb(90, 37, 139)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 73%, 55%)
CMYKcmyk(35.3%, 73.4%, 0%, 45.5%)
CIE-LABlab(27.74, 43.81, -46.98)
CIE-LCHlch(27.74, 64.24, 313.00°)
OKLaboklab(39.66% 0.0885 -0.1337)
OKLCHoklch(39.66% 0.16 303.5)
XYZxyz(9.5371, 5.3609, 24.9534)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A258B #568B25
analogous
#27258B #5A258B #8B2589
triadic
#5A258B #8B5A25 #258B5A
tetradic
#5A258B #8B2725 #568B25 #25898B
square
#5A258B #8B2725 #568B25 #25898B
split-complementary
#5A258B #898B25 #258B27
monochromatic
#1B0B2A #3B185B #5A258B #7932BB #9858D3

Accessibility & contrast

On white

10.13
#5A258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A258B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A258B#FFFFFF#000000##FFFFFF
##5A258B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#503D55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a258b;
/* rgb */ color: rgb(90, 37, 139);
/* oklch */ color: oklch(39.7% 0.160 303.5);
Tailwind
colors: {
  custom: {
    50: '#8d64ae',
    500: '#5a258b',
    950: '#000000',
  },
}
SCSS
$custom: #5a258b;
$custom-light: #8d64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a258b",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 271.176,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39657,
    "c": 0.16038,
    "h": 303.5
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#5A258B
secondary
#84B755
accent
#E14791
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A258B

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

Preview Lab → · Contrast checker → · Palette generator →

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