#5A255B#5A255B

#5A255B is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.3% C 0.108 H 326.8°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5A255B
RGBrgb(90, 37, 91)
HSLhsl(299, 42%, 25%)
HSVhsv(299, 59%, 36%)
CMYKcmyk(1.1%, 59.3%, 0%, 64.3%)
CIE-LABlab(24.49, 32.70, -21.50)
CIE-LCHlch(24.49, 39.13, 326.68°)
OKLaboklab(36.28% 0.0905 -0.0592)
OKLCHoklch(36.28% 0.108 326.8)
XYZxyz(6.7662, 4.2525, 10.3599)
Luminance0.0425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A255B #265B25
analogous
#3F255B #5A255B #5B2541
triadic
#5A255B #5B5A25 #255B5A
tetradic
#5A255B #5B3F25 #265B25 #25415B
square
#5A255B #5B3F25 #265B25 #25415B
split-complementary
#5A255B #415B25 #255B3F
monochromatic
#160916 #2F132F #5A255B #853787 #B048B2

Accessibility & contrast

On white

11.35
#5A255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A255B
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A255B#FFFFFF#000000##FFFFFF
##5A255B1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F365D
Deuteranopia (green-blind)
#303D59
Tritanopia (blue-blind)
#5D2B3C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a255b;
/* rgb */ color: rgb(90, 37, 91);
/* oklch */ color: oklch(36.3% 0.108 326.8);
Tailwind
colors: {
  custom: {
    50: '#8a6389',
    500: '#5a255b',
    950: '#000000',
  },
}
SCSS
$custom: #5a255b;
$custom-light: #8a6389;
$custom-dark: #000000;
JSON
{
  "hex": "#5a255b",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 298.889,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36276,
    "c": 0.10818,
    "h": 326.8
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#5A255B
secondary
#4F8E4D
accent
#D25658
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C050B
muted
#7D7A7C

Preview Lab

Preview with #5A255B

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

Preview Lab → · Contrast checker → · Palette generator →

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