#5A2575#5A2575

#5A2575 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.136 H 312.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5A2575
RGBrgb(90, 37, 117)
HSLhsl(280, 52%, 30%)
HSVhsv(280, 68%, 46%)
CMYKcmyk(23.1%, 68.4%, 0%, 54.1%)
CIE-LABlab(26.10, 38.45, -35.78)
CIE-LCHlch(26.10, 52.52, 317.06°)
OKLaboklab(37.97% 0.0913 -0.1008)
OKLCHoklch(37.97% 0.136 312.2)
XYZxyz(8.0883, 4.7814, 17.3230)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2575 #407525
analogous
#322575 #5A2575 #752568
triadic
#5A2575 #755A25 #25755A
tetradic
#5A2575 #753225 #407525 #256875
square
#5A2575 #753225 #407525 #256875
split-complementary
#5A2575 #687525 #257532
monochromatic
#120818 #361647 #5A2575 #7E34A3 #9E4EC7

Accessibility & contrast

On white

10.74
#5A2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2575
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2575#FFFFFF#000000##FFFFFF
##5A25751.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B77
Deuteranopia (green-blind)
#1E3F73
Tritanopia (blue-blind)
#573549
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a2575;
/* rgb */ color: rgb(90, 37, 117);
/* oklch */ color: oklch(38.0% 0.136 312.2);
Tailwind
colors: {
  custom: {
    50: '#8c649d',
    500: '#5a2575',
    950: '#000000',
  },
}
SCSS
$custom: #5a2575;
$custom-light: #8c649d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2575",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 279.75,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37969,
    "c": 0.13604,
    "h": 312.2
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

primary
#5A2575
secondary
#6CA84E
accent
#DB4C7D
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5A2575

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

Preview Lab → · Contrast checker → · Palette generator →

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