#5A2E83#5A2E83

#5A2E83 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.139 H 304.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5A2E83
RGBrgb(90, 46, 131)
HSLhsl(271, 48%, 35%)
HSVhsv(271, 65%, 51%)
CMYKcmyk(31.3%, 64.9%, 0%, 48.6%)
CIE-LABlab(28.82, 37.14, -40.25)
CIE-LCHlch(28.82, 54.77, 312.70°)
OKLaboklab(40.24% 0.0791 -0.114)
OKLCHoklch(40.24% 0.139 304.7)
XYZxyz(9.2893, 5.7664, 22.0920)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E83 #57832E
analogous
#302E83 #5A2E83 #832E82
triadic
#5A2E83 #835A2E #2E835A
tetradic
#5A2E83 #83302E #57832E #2E8283
square
#5A2E83 #83302E #57832E #2E8283
split-complementary
#5A2E83 #82832E #2E8330
monochromatic
#1C0E28 #3B1E56 #5A2E83 #793EB0 #9763C8

Accessibility & contrast

On white

9.75
#5A2E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A2E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E83
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E83#FFFFFF#000000##FFFFFF
##5A2E831.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#184481
Tritanopia (blue-blind)
#534054
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2e83;
/* rgb */ color: rgb(90, 46, 131);
/* oklch */ color: oklch(40.2% 0.139 304.7);
Tailwind
colors: {
  custom: {
    50: '#8c69a8',
    500: '#5a2e83',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e83;
$custom-light: #8c69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e83",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 271.059,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40239,
    "c": 0.13873,
    "h": 304.7
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#5A2E83
secondary
#85AF5E
accent
#D85092
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5A2E83

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

Preview Lab → · Contrast checker → · Palette generator →

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