#5F4EA5#5F4EA5

#5F4EA5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.5% C 0.135 H 289.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5F4EA5
RGBrgb(95, 78, 165)
HSLhsl(252, 36%, 48%)
HSVhsv(252, 53%, 65%)
CMYKcmyk(42.4%, 52.7%, 0%, 35.3%)
CIE-LABlab(38.89, 28.90, -44.78)
CIE-LCHlch(38.89, 53.29, 302.84°)
OKLaboklab(48.5% 0.0447 -0.1271)
OKLCHoklch(48.5% 0.135 289.4)
XYZxyz(14.2333, 10.5978, 36.8857)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EA5 #94A54E
analogous
#4E69A5 #5F4EA5 #8A4EA5
triadic
#5F4EA5 #A55F4E #4EA55F
tetradic
#5F4EA5 #A54E69 #94A54E #4EA58A
square
#5F4EA5 #A54E69 #94A54E #4EA58A
split-complementary
#5F4EA5 #A58A4E #69A54E
monochromatic
#2F2752 #473A7B #5F4EA5 #8273BD #A79DD1

Accessibility & contrast

On white

6.73
#5F4EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5F4EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EA5
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EA5#FFFFFF#000000##FFFFFF
##5F4EA51.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA8
Deuteranopia (green-blind)
#295AA3
Tritanopia (blue-blind)
#4B6072
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4ea5;
/* rgb */ color: rgb(95, 78, 165);
/* oklch */ color: oklch(48.5% 0.135 289.4);
Tailwind
colors: {
  custom: {
    50: '#9180c0',
    500: '#5f4ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ea5;
$custom-light: #9180c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ea5",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 251.724,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48503,
    "c": 0.13477,
    "h": 289.4
  },
  "luminance": 0.10598
}

Semantic roles & 50–950 ramp

primary
#5F4EA5
secondary
#B5BD91
accent
#CC5CB6
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5F4EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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