#5A2C7D#5A2C7D

#5A2C7D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.135 H 307.5°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5A2C7D
RGBrgb(90, 44, 125)
HSLhsl(274, 48%, 33%)
HSVhsv(274, 65%, 49%)
CMYKcmyk(28%, 64.8%, 0%, 51%)
CIE-LABlab(28.00, 36.71, -37.81)
CIE-LCHlch(28.00, 52.70, 314.16°)
OKLaboklab(39.51% 0.0819 -0.1068)
OKLCHoklch(39.51% 0.135 307.5)
XYZxyz(8.8180, 5.4558, 19.9866)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C7D #4F7D2C
analogous
#312C7D #5A2C7D #7D2C77
triadic
#5A2C7D #7D5A2C #2C7D5A
tetradic
#5A2C7D #7D312C #4F7D2C #2C777D
square
#5A2C7D #7D312C #4F7D2C #2C777D
split-complementary
#5A2C7D #777D2C #2C7D31
monochromatic
#190C22 #391C50 #5A2C7D #7B3CAA #995DC6

Accessibility & contrast

On white

10.04
#5A2C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A2C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C7D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C7D#FFFFFF#000000##FFFFFF
##5A2C7D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#1D427B
Tritanopia (blue-blind)
#553C50
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2c7d;
/* rgb */ color: rgb(90, 44, 125);
/* oklch */ color: oklch(39.5% 0.135 307.5);
Tailwind
colors: {
  custom: {
    50: '#8c68a3',
    500: '#5a2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c7d;
$custom-light: #8c68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c7d",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 274.074,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39512,
    "c": 0.13462,
    "h": 307.5
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#5A2C7D
secondary
#7DAC59
accent
#D8508B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5A2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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