#5A1875#5A1875

#5A1875 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.153 H 313.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5A1875
RGBrgb(90, 24, 117)
HSLhsl(283, 66%, 28%)
HSVhsv(283, 79%, 46%)
CMYKcmyk(23.1%, 79.5%, 0%, 54.1%)
CIE-LABlab(24.04, 44.28, -39.11)
CIE-LCHlch(24.04, 59.08, 318.54°)
OKLaboklab(36.5% 0.1058 -0.1105)
OKLCHoklch(36.5% 0.153 313.7)
XYZxyz(7.7534, 4.1115, 17.2114)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1875 #337518
analogous
#2C1875 #5A1875 #751861
triadic
#5A1875 #755A18 #18755A
tetradic
#5A1875 #752C18 #337518 #186175
square
#5A1875 #752C18 #337518 #186175
split-complementary
#5A1875 #617518 #18752C
monochromatic
#140519 #330E42 #5A1875 #8122A8 #A632D5

Accessibility & contrast

On white

11.52
#5A1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1875
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1875#FFFFFF#000000##FFFFFF
##5A18751.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#0F3B73
Tritanopia (blue-blind)
#572D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1875;
/* rgb */ color: rgb(90, 24, 117);
/* oklch */ color: oklch(36.5% 0.153 313.7);
Tailwind
colors: {
  custom: {
    50: '#8c5d9d',
    500: '#5a1875',
    950: '#000000',
  },
}
SCSS
$custom: #5a1875;
$custom-light: #8c5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1875",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 282.581,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36496,
    "c": 0.15297,
    "h": 313.7
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#5A1875
secondary
#5EAA3F
accent
#E93F70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A1875

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

Preview Lab → · Contrast checker → · Palette generator →

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