#5A1075#5A1075

#5A1075 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.8% C 0.161 H 314.4°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#5A1075
RGBrgb(90, 16, 117)
HSLhsl(284, 76%, 26%)
HSVhsv(284, 86%, 46%)
CMYKcmyk(23.1%, 86.3%, 0%, 54.1%)
CIE-LABlab(23.10, 47.00, -40.63)
CIE-LCHlch(23.10, 62.13, 319.16°)
OKLaboklab(35.84% 0.1125 -0.1149)
OKLCHoklch(35.84% 0.161 314.4)
XYZxyz(7.6121, 3.8289, 17.1642)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1075 #2B7510
analogous
#271075 #5A1075 #75105D
triadic
#5A1075 #755A10 #10755A
tetradic
#5A1075 #752710 #2B7510 #105D75
square
#5A1075 #752710 #2B7510 #105D75
split-complementary
#5A1075 #5D7510 #107527
monochromatic
#15041B #31093F #5A1075 #8317AB #AD1FE0

Accessibility & contrast

On white

11.89
#5A1075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1075
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1075#FFFFFF#000000##FFFFFF
##5A10751.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#053973
Tritanopia (blue-blind)
#572A44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1075;
/* rgb */ color: rgb(90, 16, 117);
/* oklch */ color: oklch(35.8% 0.161 314.4);
Tailwind
colors: {
  custom: {
    50: '#8d5a9d',
    500: '#5a1075',
    950: '#000000',
  },
}
SCSS
$custom: #5a1075;
$custom-light: #8d5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1075",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 283.96,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35837,
    "c": 0.16083,
    "h": 314.4
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#5A1075
secondary
#55AC35
accent
#F33568
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1075

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

Preview Lab → · Contrast checker → · Palette generator →

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