#5F4FA4#5F4FA4

#5F4FA4 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 48.6% C 0.132 H 289.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5F4FA4
RGBrgb(95, 79, 164)
HSLhsl(251, 35%, 48%)
HSVhsv(251, 52%, 64%)
CMYKcmyk(42.1%, 51.8%, 0%, 35.7%)
CIE-LABlab(39.08, 27.99, -43.88)
CIE-LCHlch(39.08, 52.05, 302.53°)
OKLaboklab(48.62% 0.0434 -0.1245)
OKLCHoklch(48.62% 0.132 289.2)
XYZxyz(14.2143, 10.7047, 36.4320)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FA4 #94A44F
analogous
#4F6AA4 #5F4FA4 #894FA4
triadic
#5F4FA4 #A45F4F #4FA45F
tetradic
#5F4FA4 #A44F6A #94A44F #4FA489
square
#5F4FA4 #A44F6A #94A44F #4FA489
split-complementary
#5F4FA4 #A4894F #6AA44F
monochromatic
#2F2751 #473B7B #5F4FA4 #8274BC #A79DD0

Accessibility & contrast

On white

6.69
#5F4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F4FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FA4
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FA4#FFFFFF#000000##FFFFFF
##5F4FA41.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5EA7
Deuteranopia (green-blind)
#2C5AA2
Tritanopia (blue-blind)
#4B6172
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4fa4;
/* rgb */ color: rgb(95, 79, 164);
/* oklch */ color: oklch(48.6% 0.132 289.2);
Tailwind
colors: {
  custom: {
    50: '#9080bf',
    500: '#5f4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fa4;
$custom-light: #9080bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fa4",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 251.294,
    "s": 34.979,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4862,
    "c": 0.13185,
    "h": 289.2
  },
  "luminance": 0.10705
}

Semantic roles & 50–950 ramp

primary
#5F4FA4
secondary
#B5BD92
accent
#CB5DB6
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5F4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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