#5A2F99#5A2F99

#5A2F99 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.164 H 297.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5A2F99
RGBrgb(90, 47, 153)
HSLhsl(264, 53%, 39%)
HSVhsv(264, 69%, 60%)
CMYKcmyk(41.2%, 69.3%, 0%, 40%)
CIE-LABlab(30.66, 42.42, -50.86)
CIE-LCHlch(30.66, 66.23, 309.83°)
OKLaboklab(42.08% 0.0755 -0.1452)
OKLCHoklch(42.08% 0.164 297.5)
XYZxyz(10.9813, 6.5064, 30.8081)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2F99 #6E992F
analogous
#2F3999 #5A2F99 #8F2F99
triadic
#5A2F99 #995A2F #2F995A
tetradic
#5A2F99 #992F39 #6E992F #2F998F
square
#5A2F99 #992F39 #6E992F #2F998F
split-complementary
#5A2F99 #998F2F #39992F
monochromatic
#23123B #3E216A #5A2F99 #7641C5 #986FD3

Accessibility & contrast

On white

9.12
#5A2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2F99
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2F99#FFFFFF#000000##FFFFFF
##5A2F991.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#4A4860
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2f99;
/* rgb */ color: rgb(90, 47, 153);
/* oklch */ color: oklch(42.1% 0.164 297.5);
Tailwind
colors: {
  custom: {
    50: '#8e6bb8',
    500: '#5a2f99',
    950: '#000000',
  },
}
SCSS
$custom: #5a2f99;
$custom-light: #8e6bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2f99",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 264.34,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42084,
    "c": 0.16362,
    "h": 297.5
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#5A2F99
secondary
#9ABA69
accent
#DC4BA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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