#5F4EA2#5F4EA2

#5F4EA2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 48.3% C 0.131 H 289.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5F4EA2
RGBrgb(95, 78, 162)
HSLhsl(252, 35%, 47%)
HSVhsv(252, 52%, 64%)
CMYKcmyk(41.4%, 51.9%, 0%, 36.5%)
CIE-LABlab(38.71, 28.02, -43.28)
CIE-LCHlch(38.71, 51.56, 302.92°)
OKLaboklab(48.3% 0.0445 -0.1227)
OKLCHoklch(48.3% 0.131 289.9)
XYZxyz(13.9635, 10.4899, 35.4644)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EA2 #91A24E
analogous
#4E67A2 #5F4EA2 #894EA2
triadic
#5F4EA2 #A25F4E #4EA25F
tetradic
#5F4EA2 #A24E67 #91A24E #4EA289
square
#5F4EA2 #A24E67 #91A24E #4EA289
split-complementary
#5F4EA2 #A2894E #67A24E
monochromatic
#2F264F #473A79 #5F4EA2 #8172BB #A69BCF

Accessibility & contrast

On white

6.78
#5F4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5F4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EA2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EA2#FFFFFF#000000##FFFFFF
##5F4EA21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#2C59A0
Tritanopia (blue-blind)
#4C5F70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f4ea2;
/* rgb */ color: rgb(95, 78, 162);
/* oklch */ color: oklch(48.3% 0.131 289.9);
Tailwind
colors: {
  custom: {
    50: '#9080be',
    500: '#5f4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ea2;
$custom-light: #9080be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ea2",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 252.143,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48303,
    "c": 0.13057,
    "h": 289.9
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#5F4EA2
secondary
#B3BC90
accent
#CB5DB5
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5F4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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