#5A2983#5A2983

#5A2983 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.146 H 305.7°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5A2983
RGBrgb(90, 41, 131)
HSLhsl(273, 52%, 34%)
HSVhsv(273, 69%, 51%)
CMYKcmyk(31.3%, 68.7%, 0%, 48.6%)
CIE-LABlab(27.84, 39.81, -41.83)
CIE-LCHlch(27.84, 57.75, 313.59°)
OKLaboklab(39.54% 0.0852 -0.1186)
OKLCHoklch(39.54% 0.146 305.7)
XYZxyz(9.1052, 5.3983, 22.0306)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2983 #528329
analogous
#2D2983 #5A2983 #83297F
triadic
#5A2983 #835A29 #29835A
tetradic
#5A2983 #832D29 #528329 #297F83
square
#5A2983 #832D29 #528329 #297F83
split-complementary
#5A2983 #7F8329 #29832D
monochromatic
#1A0C26 #3A1A54 #5A2983 #7A38B2 #985BCC

Accessibility & contrast

On white

10.10
#5A2983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5A2983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2983
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2983#FFFFFF#000000##FFFFFF
##5A29831.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#0F4281
Tritanopia (blue-blind)
#533D52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2983;
/* rgb */ color: rgb(90, 41, 131);
/* oklch */ color: oklch(39.5% 0.146 305.7);
Tailwind
colors: {
  custom: {
    50: '#8c66a8',
    500: '#5a2983',
    950: '#000000',
  },
}
SCSS
$custom: #5a2983;
$custom-light: #8c66a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2983",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 131
  },
  "hsl": {
    "h": 272.667,
    "s": 52.326,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39536,
    "c": 0.14604,
    "h": 305.7
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#5A2983
secondary
#80B157
accent
#DC4C8E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2983

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

Preview Lab → · Contrast checker → · Palette generator →

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