#5A2C8F#5A2C8F

#5A2C8F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.156 H 301.0°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A2C8F
RGBrgb(90, 44, 143)
HSLhsl(268, 53%, 37%)
HSVhsv(268, 69%, 56%)
CMYKcmyk(37.1%, 69.2%, 0%, 43.9%)
CIE-LABlab(29.31, 41.34, -46.91)
CIE-LCHlch(29.31, 62.53, 311.38°)
OKLaboklab(40.87% 0.0803 -0.1336)
OKLCHoklch(40.87% 0.156 301)
XYZxyz(10.0739, 5.9581, 26.6006)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C8F #618F2C
analogous
#2C308F #5A2C8F #8C2C8F
triadic
#5A2C8F #8F5A2C #2C8F5A
tetradic
#5A2C8F #8F2C30 #618F2C #2C8F8C
square
#5A2C8F #8F2C30 #618F2C #2C8F8C
split-complementary
#5A2C8F #8F8C2C #308F2C
monochromatic
#1F0F31 #3D1E60 #5A2C8F #773ABE #9766D0

Accessibility & contrast

On white

9.58
#5A2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A2C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C8F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C8F#FFFFFF#000000##FFFFFF
##5A2C8F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#4F435A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2c8f;
/* rgb */ color: rgb(90, 44, 143);
/* oklch */ color: oklch(40.9% 0.156 301.0);
Tailwind
colors: {
  custom: {
    50: '#8d69b0',
    500: '#5a2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c8f;
$custom-light: #8d69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c8f",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 267.879,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40873,
    "c": 0.15582,
    "h": 301
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#5A2C8F
secondary
#8EB661
accent
#DC4B99
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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