#5F4EA4#5F4EA4

#5F4EA4 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.4% C 0.133 H 289.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5F4EA4
RGBrgb(95, 78, 164)
HSLhsl(252, 36%, 47%)
HSVhsv(252, 52%, 64%)
CMYKcmyk(42.1%, 52.4%, 0%, 35.7%)
CIE-LABlab(38.83, 28.61, -44.28)
CIE-LCHlch(38.83, 52.72, 302.87°)
OKLaboklab(48.44% 0.0447 -0.1257)
OKLCHoklch(48.44% 0.133 289.6)
XYZxyz(14.1427, 10.5616, 36.4082)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EA4 #93A44E
analogous
#4E68A4 #5F4EA4 #8A4EA4
triadic
#5F4EA4 #A45F4E #4EA45F
tetradic
#5F4EA4 #A44E68 #93A44E #4EA48A
square
#5F4EA4 #A44E68 #93A44E #4EA48A
split-complementary
#5F4EA4 #A48A4E #68A44E
monochromatic
#2F2751 #473A7B #5F4EA4 #8173BC #A79CD0

Accessibility & contrast

On white

6.75
#5F4EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F4EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EA4
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EA4#FFFFFF#000000##FFFFFF
##5F4EA41.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA7
Deuteranopia (green-blind)
#2A59A2
Tritanopia (blue-blind)
#4C6071
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f4ea4;
/* rgb */ color: rgb(95, 78, 164);
/* oklch */ color: oklch(48.4% 0.133 289.6);
Tailwind
colors: {
  custom: {
    50: '#9080bf',
    500: '#5f4ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ea4;
$custom-light: #9080bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ea4",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 251.86,
    "s": 35.537,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48436,
    "c": 0.13338,
    "h": 289.6
  },
  "luminance": 0.10562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F4EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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