#5A2283#5A2283

#5A2283 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.155 H 306.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5A2283
RGBrgb(90, 34, 131)
HSLhsl(275, 59%, 32%)
HSVhsv(275, 74%, 51%)
CMYKcmyk(31.3%, 74%, 0%, 48.6%)
CIE-LABlab(26.61, 43.25, -43.82)
CIE-LCHlch(26.61, 61.57, 314.63°)
OKLaboklab(38.66% 0.0931 -0.1244)
OKLCHoklch(38.66% 0.155 306.8)
XYZxyz(8.8843, 4.9565, 21.9570)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2283 #4B8322
analogous
#292283 #5A2283 #83227C
triadic
#5A2283 #835A22 #22835A
tetradic
#5A2283 #832922 #4B8322 #227C83
square
#5A2283 #832922 #4B8322 #227C83
split-complementary
#5A2283 #7C8322 #228329
monochromatic
#170922 #391552 #5A2283 #7B2FB4 #9A4ED1

Accessibility & contrast

On white

10.55
#5A2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2283
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2283#FFFFFF#000000##FFFFFF
##5A22831.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#533950
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2283;
/* rgb */ color: rgb(90, 34, 131);
/* oklch */ color: oklch(38.7% 0.155 306.8);
Tailwind
colors: {
  custom: {
    50: '#8d63a8',
    500: '#5a2283',
    950: '#000000',
  },
}
SCSS
$custom: #5a2283;
$custom-light: #8d63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2283",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 274.639,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38658,
    "c": 0.15541,
    "h": 306.8
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#5A2283
secondary
#78B44C
accent
#E24688
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #5A2283

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

Preview Lab → · Contrast checker → · Palette generator →

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