#5F31AE#5F31AE

#5F31AE is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.186 H 294.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5F31AE
RGBrgb(95, 49, 174)
HSLhsl(262, 56%, 44%)
HSVhsv(262, 72%, 68%)
CMYKcmyk(45.4%, 71.8%, 0%, 31.8%)
CIE-LABlab(33.32, 48.01, -59.17)
CIE-LCHlch(33.32, 76.20, 309.06°)
OKLaboklab(44.65% 0.077 -0.1694)
OKLCHoklch(44.65% 0.186 294.4)
XYZxyz(13.4555, 7.6851, 40.8106)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F31AE #80AE31
analogous
#3141AE #5F31AE #9D31AE
triadic
#5F31AE #AE5F31 #31AE5F
tetradic
#5F31AE #AE3141 #80AE31 #31AE9D
square
#5F31AE #AE3141 #80AE31 #31AE9D
split-complementary
#5F31AE #AE9D31 #41AE31
monochromatic
#2B164E #45247E #5F31AE #7D4FCD #A17FDB

Accessibility & contrast

On white

8.28
#5F31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5F31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F31AE
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F31AE#FFFFFF#000000##FFFFFF
##5F31AE1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#48516C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f31ae;
/* rgb */ color: rgb(95, 49, 174);
/* oklch */ color: oklch(44.6% 0.186 294.4);
Tailwind
colors: {
  custom: {
    50: '#946dc7',
    500: '#5f31ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f31ae;
$custom-light: #946dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f31ae",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 262.08,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44646,
    "c": 0.1861,
    "h": 294.4
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#5F31AE
secondary
#A8C477
accent
#DF48A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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