#5A1283#5A1283

#5A1283 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.172 H 308.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5A1283
RGBrgb(90, 18, 131)
HSLhsl(278, 76%, 29%)
HSVhsv(278, 86%, 51%)
CMYKcmyk(31.3%, 86.3%, 0%, 48.6%)
CIE-LABlab(24.47, 49.42, -47.30)
CIE-LCHlch(24.47, 68.41, 316.26°)
OKLaboklab(37.15% 0.1073 -0.1345)
OKLCHoklch(37.15% 0.172 308.6)
XYZxyz(8.5286, 4.2451, 21.8384)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1283 #3B8312
analogous
#221283 #5A1283 #831274
triadic
#5A1283 #835A12 #12835A
tetradic
#5A1283 #832212 #3B8312 #127483
square
#5A1283 #832212 #3B8312 #127483
split-complementary
#5A1283 #748312 #128322
monochromatic
#12041B #350B4D #5A1283 #7F19B9 #A12DE2

Accessibility & contrast

On white

11.36
#5A1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1283
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1283#FFFFFF#000000##FFFFFF
##5A12831.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#53314D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1283;
/* rgb */ color: rgb(90, 18, 131);
/* oklch */ color: oklch(37.2% 0.172 308.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ca8',
    500: '#5a1283',
    950: '#000000',
  },
}
SCSS
$custom: #5a1283;
$custom-light: #8e5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1283",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 278.23,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37152,
    "c": 0.17206,
    "h": 308.6
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#5A1283
secondary
#67B838
accent
#F2357A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #5A1283

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

Preview Lab → · Contrast checker → · Palette generator →

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