#5A1276#5A1276

#5A1276 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.160 H 313.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#5A1276
RGBrgb(90, 18, 118)
HSLhsl(283, 74%, 27%)
HSVhsv(283, 85%, 46%)
CMYKcmyk(23.7%, 84.7%, 0%, 53.7%)
CIE-LABlab(23.39, 46.60, -40.80)
CIE-LCHlch(23.39, 61.94, 318.79°)
OKLaboklab(36.06% 0.1108 -0.1154)
OKLCHoklch(36.06% 0.16 313.8)
XYZxyz(7.7022, 3.9145, 17.4859)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1276 #2E7612
analogous
#281276 #5A1276 #761260
triadic
#5A1276 #765A12 #12765A
tetradic
#5A1276 #762812 #2E7612 #126076
square
#5A1276 #762812 #2E7612 #126076
split-complementary
#5A1276 #607612 #127628
monochromatic
#14041B #320A41 #5A1276 #831AAB #AA25DE

Accessibility & contrast

On white

11.78
#5A1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1276
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1276#FFFFFF#000000##FFFFFF
##5A12761.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1276;
/* rgb */ color: rgb(90, 18, 118);
/* oklch */ color: oklch(36.1% 0.160 313.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b9e',
    500: '#5a1276',
    950: '#000000',
  },
}
SCSS
$custom: #5a1276;
$custom-light: #8d5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1276",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 283.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36064,
    "c": 0.15998,
    "h": 313.8
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#5A1276
secondary
#58AD37
accent
#F0386B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1276

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

Preview Lab → · Contrast checker → · Palette generator →

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