#5F31AF#5F31AF

#5F31AF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.187 H 294.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5F31AF
RGBrgb(95, 49, 175)
HSLhsl(262, 56%, 44%)
HSVhsv(262, 72%, 69%)
CMYKcmyk(45.7%, 72%, 0%, 31.4%)
CIE-LABlab(33.40, 48.28, -59.63)
CIE-LCHlch(33.40, 76.72, 309.00°)
OKLaboklab(44.73% 0.0768 -0.1708)
OKLCHoklch(44.73% 0.187 294.2)
XYZxyz(13.5534, 7.7243, 41.3260)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F31AF #81AF31
analogous
#3142AF #5F31AF #9E31AF
triadic
#5F31AF #AF5F31 #31AF5F
tetradic
#5F31AF #AF3142 #81AF31 #31AF9E
square
#5F31AF #AF3142 #81AF31 #31AF9E
split-complementary
#5F31AF #AF9E31 #42AF31
monochromatic
#2B164F #45247F #5F31AF #7E4FCE #A17FDB

Accessibility & contrast

On white

8.25
#5F31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5F31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F31AF
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F31AF#FFFFFF#000000##FFFFFF
##5F31AF1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#48516D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f31af;
/* rgb */ color: rgb(95, 49, 175);
/* oklch */ color: oklch(44.7% 0.187 294.2);
Tailwind
colors: {
  custom: {
    50: '#946dc8',
    500: '#5f31af',
    950: '#000000',
  },
}
SCSS
$custom: #5f31af;
$custom-light: #946dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f31af",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 261.905,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44732,
    "c": 0.18725,
    "h": 294.2
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#5F31AF
secondary
#A8C478
accent
#E048A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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