#5F4FA5#5F4FA5

#5F4FA5 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 48.7% C 0.133 H 289.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5F4FA5
RGBrgb(95, 79, 165)
HSLhsl(251, 35%, 48%)
HSVhsv(251, 52%, 65%)
CMYKcmyk(42.4%, 52.1%, 0%, 35.3%)
CIE-LABlab(39.14, 28.29, -44.38)
CIE-LCHlch(39.14, 52.63, 302.51°)
OKLaboklab(48.69% 0.0435 -0.126)
OKLCHoklch(48.69% 0.133 289)
XYZxyz(14.3049, 10.7410, 36.9095)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FA5 #95A54F
analogous
#4F6AA5 #5F4FA5 #8A4FA5
triadic
#5F4FA5 #A55F4F #4FA55F
tetradic
#5F4FA5 #A54F6A #95A54F #4FA58A
square
#5F4FA5 #A54F6A #95A54F #4FA58A
split-complementary
#5F4FA5 #A58A4F #6AA54F
monochromatic
#2F2752 #473B7C #5F4FA5 #8275BD #A79ED1

Accessibility & contrast

On white

6.67
#5F4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5F4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FA5
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FA5#FFFFFF#000000##FFFFFF
##5F4FA51.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA8
Deuteranopia (green-blind)
#2A5AA3
Tritanopia (blue-blind)
#4B6172
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4fa5;
/* rgb */ color: rgb(95, 79, 165);
/* oklch */ color: oklch(48.7% 0.133 289.0);
Tailwind
colors: {
  custom: {
    50: '#9080c0',
    500: '#5f4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fa5;
$custom-light: #9080c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fa5",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 251.163,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.13325,
    "h": 289
  },
  "luminance": 0.10741
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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