#5818A1#5818A1

#5818A1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.196 H 297.3°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5818A1
RGBrgb(88, 24, 161)
HSLhsl(268, 74%, 36%)
HSVhsv(268, 85%, 63%)
CMYKcmyk(45.3%, 85.1%, 0%, 36.9%)
CIE-LABlab(27.58, 54.22, -60.78)
CIE-LCHlch(27.58, 81.45, 311.74°)
OKLaboklab(40.08% 0.09 -0.1742)
OKLCHoklch(40.08% 0.196 297.3)
XYZxyz(10.7825, 5.3010, 34.1664)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5818A1 #61A118
analogous
#181DA1 #5818A1 #9D18A1
triadic
#5818A1 #A15818 #18A158
tetradic
#5818A1 #A1181D #61A118 #18A19D
square
#5818A1 #A1181D #61A118 #18A19D
split-complementary
#5818A1 #A19D18 #1DA118
monochromatic
#1E0836 #3B106C #5818A1 #7520D6 #954FE5

Accessibility & contrast

On white

10.19
#5818A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5818A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5818A1
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5818A1#FFFFFF#000000##FFFFFF
##5818A11.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#44415F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5818a1;
/* rgb */ color: rgb(88, 24, 161);
/* oklch */ color: oklch(40.1% 0.196 297.3);
Tailwind
colors: {
  custom: {
    50: '#8f5fbe',
    500: '#5818a1',
    950: '#000000',
  },
}
SCSS
$custom: #5818a1;
$custom-light: #8f5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5818a1",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 268.029,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4008,
    "c": 0.19607,
    "h": 297.3
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#5818A1
secondary
#8EC74E
accent
#F1379A
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5818A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5818A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva