#5718A1#5718A1

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

Color values

HEX#5718A1
RGBrgb(87, 24, 161)
HSLhsl(268, 74%, 36%)
HSVhsv(268, 85%, 63%)
CMYKcmyk(46%, 85.1%, 0%, 36.9%)
CIE-LABlab(27.44, 54.09, -61.00)
CIE-LCHlch(27.44, 81.53, 311.56°)
OKLaboklab(39.96% 0.0884 -0.1749)
OKLCHoklch(39.96% 0.196 296.8)
XYZxyz(10.6884, 5.2525, 34.1620)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5718A1 #62A118
analogous
#181EA1 #5718A1 #9C18A1
triadic
#5718A1 #A15718 #18A157
tetradic
#5718A1 #A1181E #62A118 #18A19C
square
#5718A1 #A1181E #62A118 #18A19C
split-complementary
#5718A1 #A19C18 #1EA118
monochromatic
#1D0836 #3A106C #5718A1 #7420D6 #944FE5

Accessibility & contrast

On white

10.24
#5718A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5718A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5718A1
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5718A1#FFFFFF#000000##FFFFFF
##5718A11.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5718a1;
/* rgb */ color: rgb(87, 24, 161);
/* oklch */ color: oklch(40.0% 0.196 296.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fbe',
    500: '#5718a1',
    950: '#000000',
  },
}
SCSS
$custom: #5718a1;
$custom-light: #8f5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5718a1",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 267.591,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3996,
    "c": 0.19597,
    "h": 296.8
  },
  "luminance": 0.05253
}

Semantic roles & 50–950 ramp

primary
#5718A1
secondary
#8FC74E
accent
#F1379B
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5718A1

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

Preview Lab → · Contrast checker → · Palette generator →

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