#5A2F79#5A2F79

#5A2F79 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.125 H 308.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5A2F79
RGBrgb(90, 47, 121)
HSLhsl(275, 44%, 33%)
HSVhsv(275, 61%, 47%)
CMYKcmyk(25.6%, 61.2%, 0%, 52.5%)
CIE-LABlab(28.35, 34.04, -34.72)
CIE-LCHlch(28.35, 48.63, 314.43°)
OKLaboklab(39.68% 0.078 -0.0978)
OKLCHoklch(39.68% 0.125 308.6)
XYZxyz(8.6835, 5.5873, 18.7065)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2F79 #4E792F
analogous
#352F79 #5A2F79 #792F73
triadic
#5A2F79 #795A2F #2F795A
tetradic
#5A2F79 #79352F #4E792F #2F7379
square
#5A2F79 #79352F #4E792F #2F7379
split-complementary
#5A2F79 #73792F #2F7935
monochromatic
#180D21 #391E4D #5A2F79 #7B40A5 #9961C2

Accessibility & contrast

On white

9.92
#5A2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A2F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2F79
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2F79#FFFFFF#000000##FFFFFF
##5A2F791.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13417B
Deuteranopia (green-blind)
#254377
Tritanopia (blue-blind)
#563D4F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2f79;
/* rgb */ color: rgb(90, 47, 121);
/* oklch */ color: oklch(39.7% 0.125 308.6);
Tailwind
colors: {
  custom: {
    50: '#8b6aa0',
    500: '#5a2f79',
    950: '#000000',
  },
}
SCSS
$custom: #5a2f79;
$custom-light: #8b6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2f79",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 274.865,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39682,
    "c": 0.12507,
    "h": 308.6
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#5A2F79
secondary
#7CA85B
accent
#D4548A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #5A2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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