#5918A1#5918A1

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

Color values

HEX#5918A1
RGBrgb(89, 24, 161)
HSLhsl(268, 74%, 36%)
HSVhsv(268, 85%, 63%)
CMYKcmyk(44.7%, 85.1%, 0%, 36.9%)
CIE-LABlab(27.71, 54.35, -60.55)
CIE-LCHlch(27.71, 81.37, 311.91°)
OKLaboklab(40.2% 0.0916 -0.1735)
OKLCHoklch(40.2% 0.196 297.8)
XYZxyz(10.8778, 5.3501, 34.1709)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5918A1 #60A118
analogous
#181CA1 #5918A1 #9E18A1
triadic
#5918A1 #A15918 #18A159
tetradic
#5918A1 #A1181C #60A118 #18A19E
square
#5918A1 #A1181C #60A118 #18A19E
split-complementary
#5918A1 #A19E18 #1CA118
monochromatic
#1E0836 #3C106C #5918A1 #7620D6 #964FE5

Accessibility & contrast

On white

10.14
#5918A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5918A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5918A1
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5918A1#FFFFFF#000000##FFFFFF
##5918A11.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#46415F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5918a1;
/* rgb */ color: rgb(89, 24, 161);
/* oklch */ color: oklch(40.2% 0.196 297.8);
Tailwind
colors: {
  custom: {
    50: '#9060be',
    500: '#5918a1',
    950: '#000000',
  },
}
SCSS
$custom: #5918a1;
$custom-light: #9060be;
$custom-dark: #000000;
JSON
{
  "hex": "#5918a1",
  "rgb": {
    "r": 89,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 268.467,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40202,
    "c": 0.19617,
    "h": 297.8
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#5918A1
secondary
#8DC74E
accent
#F13799
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5918A1

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

Preview Lab → · Contrast checker → · Palette generator →

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