#5F4EAA#5F4EAA

#5F4EAA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 48.8% C 0.142 H 288.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5F4EAA
RGBrgb(95, 78, 170)
HSLhsl(251, 37%, 49%)
HSVhsv(251, 54%, 67%)
CMYKcmyk(44.1%, 54.1%, 0%, 33.3%)
CIE-LABlab(39.21, 30.38, -47.24)
CIE-LCHlch(39.21, 56.17, 302.75°)
OKLaboklab(48.84% 0.045 -0.1344)
OKLCHoklch(48.84% 0.142 288.5)
XYZxyz(14.6974, 10.7834, 39.3294)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EAA #99AA4E
analogous
#4E6BAA #5F4EAA #8D4EAA
triadic
#5F4EAA #AA5F4E #4EAA5F
tetradic
#5F4EAA #AA4E6B #99AA4E #4EAA8D
square
#5F4EAA #AA4E6B #99AA4E #4EAA8D
split-complementary
#5F4EAA #AA8D4E #6BAA4E
monochromatic
#302856 #483B80 #5F4EAA #8375C0 #A99FD3

Accessibility & contrast

On white

6.65
#5F4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5F4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EAA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EAA#FFFFFF#000000##FFFFFF
##5F4EAA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAD
Deuteranopia (green-blind)
#225AA8
Tritanopia (blue-blind)
#496274
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4eaa;
/* rgb */ color: rgb(95, 78, 170);
/* oklch */ color: oklch(48.8% 0.142 288.5);
Tailwind
colors: {
  custom: {
    50: '#9180c4',
    500: '#5f4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f4eaa;
$custom-light: #9180c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4eaa",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 251.087,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48842,
    "c": 0.14171,
    "h": 288.5
  },
  "luminance": 0.10784
}

Semantic roles & 50–950 ramp

primary
#5F4EAA
secondary
#B8C094
accent
#CD5BB8
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5F4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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