#5A1275#5A1275

#5A1275 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.159 H 314.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5A1275
RGBrgb(90, 18, 117)
HSLhsl(284, 73%, 26%)
HSVhsv(284, 85%, 46%)
CMYKcmyk(23.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(23.31, 46.39, -40.29)
CIE-LCHlch(23.31, 61.44, 319.02°)
OKLaboklab(35.98% 0.111 -0.1139)
OKLCHoklch(35.98% 0.159 314.3)
XYZxyz(7.6431, 3.8909, 17.1746)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1275 #2D7512
analogous
#291275 #5A1275 #75125F
triadic
#5A1275 #755A12 #12755A
tetradic
#5A1275 #752912 #2D7512 #125F75
square
#5A1275 #752912 #2D7512 #125F75
split-complementary
#5A1275 #5F7512 #127529
monochromatic
#14041B #310A40 #5A1275 #831AAA #AB24DD

Accessibility & contrast

On white

11.81
#5A1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1275
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1275#FFFFFF#000000##FFFFFF
##5A12751.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#073973
Tritanopia (blue-blind)
#572B45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1275;
/* rgb */ color: rgb(90, 18, 117);
/* oklch */ color: oklch(36.0% 0.159 314.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b9d',
    500: '#5a1275',
    950: '#000000',
  },
}
SCSS
$custom: #5a1275;
$custom-light: #8d5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1275",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 283.636,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35983,
    "c": 0.15906,
    "h": 314.3
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#5A1275
secondary
#57AC37
accent
#F0386A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1275

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

Preview Lab → · Contrast checker → · Palette generator →

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