#5A1675#5A1675

#5A1675 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.155 H 313.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5A1675
RGBrgb(90, 22, 117)
HSLhsl(283, 68%, 27%)
HSVhsv(283, 81%, 46%)
CMYKcmyk(23.1%, 81.2%, 0%, 54.1%)
CIE-LABlab(23.78, 45.02, -39.53)
CIE-LCHlch(23.78, 59.91, 318.72°)
OKLaboklab(36.31% 0.1076 -0.1117)
OKLCHoklch(36.31% 0.155 313.9)
XYZxyz(7.7137, 4.0321, 17.1981)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1675 #317516
analogous
#2A1675 #5A1675 #751661
triadic
#5A1675 #755A16 #16755A
tetradic
#5A1675 #752A16 #317516 #166175
square
#5A1675 #752A16 #317516 #166175
split-complementary
#5A1675 #617516 #16752A
monochromatic
#14051A #320C41 #5A1675 #8220A9 #A72ED8

Accessibility & contrast

On white

11.63
#5A1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1675
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1675#FFFFFF#000000##FFFFFF
##5A16751.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#0D3A73
Tritanopia (blue-blind)
#572C45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1675;
/* rgb */ color: rgb(90, 22, 117);
/* oklch */ color: oklch(36.3% 0.155 313.9);
Tailwind
colors: {
  custom: {
    50: '#8c5c9d',
    500: '#5a1675',
    950: '#000000',
  },
}
SCSS
$custom: #5a1675;
$custom-light: #8c5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1675",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 282.947,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36313,
    "c": 0.15513,
    "h": 313.9
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#5A1675
secondary
#5CAB3C
accent
#EB3D6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1675

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

Preview Lab → · Contrast checker → · Palette generator →

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