#5A1965#5A1965

#5A1965 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.136 H 321.5°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#5A1965
RGBrgb(90, 25, 101)
HSLhsl(291, 60%, 25%)
HSVhsv(291, 75%, 40%)
CMYKcmyk(10.9%, 75.2%, 0%, 60.4%)
CIE-LABlab(23.03, 40.48, -30.38)
CIE-LCHlch(23.03, 50.61, 323.11°)
OKLaboklab(35.42% 0.1067 -0.0849)
OKLCHoklch(35.42% 0.136 321.5)
XYZxyz(6.9128, 3.8089, 12.6805)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1965 #246519
analogous
#341965 #5A1965 #65194A
triadic
#5A1965 #655A19 #19655A
tetradic
#5A1965 #653419 #246519 #194A65
square
#5A1965 #653419 #246519 #194A65
split-complementary
#5A1965 #4A6519 #196534
monochromatic
#160619 #2E0D34 #5A1965 #862596 #B131C7

Accessibility & contrast

On white

11.92
#5A1965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A1965 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1965
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1965#FFFFFF#000000##FFFFFF
##5A19651.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#223963
Tritanopia (blue-blind)
#5B273D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1965;
/* rgb */ color: rgb(90, 25, 101);
/* oklch */ color: oklch(35.4% 0.136 321.5);
Tailwind
colors: {
  custom: {
    50: '#8b5d91',
    500: '#5a1965',
    950: '#000000',
  },
}
SCSS
$custom: #5a1965;
$custom-light: #8b5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1965",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 291.316,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35415,
    "c": 0.13634,
    "h": 321.5
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#5A1965
secondary
#4C9B3F
accent
#E3445B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5A1965

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

Preview Lab → · Contrast checker → · Palette generator →

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