#5F4AC0#5F4AC0

#5F4AC0 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.8% C 0.177 H 286.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5F4AC0
RGBrgb(95, 74, 192)
HSLhsl(251, 48%, 52%)
HSVhsv(251, 61%, 75%)
CMYKcmyk(50.5%, 61.5%, 0%, 24.7%)
CIE-LABlab(39.81, 39.38, -59.23)
CIE-LCHlch(39.81, 71.13, 303.62°)
OKLaboklab(49.77% 0.0494 -0.1697)
OKLCHoklch(49.77% 0.177 286.2)
XYZxyz(16.6797, 11.1354, 51.1294)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4AC0 #ABC04A
analogous
#4A70C0 #5F4AC0 #9A4AC0
triadic
#5F4AC0 #C05F4A #4AC05F
tetradic
#5F4AC0 #C04A70 #ABC04A #4AC09A
square
#5F4AC0 #C04A70 #ABC04A #4AC09A
split-complementary
#5F4AC0 #C09A4A #70C04A
monochromatic
#31256B #473598 #5F4AC0 #8777D0 #AFA5E0

Accessibility & contrast

On white

6.51
#5F4AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5F4AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4AC0
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4AC0#FFFFFF#000000##FFFFFF
##5F4AC01.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#3B667E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f4ac0;
/* rgb */ color: rgb(95, 74, 192);
/* oklch */ color: oklch(49.8% 0.177 286.2);
Tailwind
colors: {
  custom: {
    50: '#947dd4',
    500: '#5f4ac0',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ac0;
$custom-light: #947dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ac0",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 192
  },
  "hsl": {
    "h": 250.678,
    "s": 48.361,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49766,
    "c": 0.1767,
    "h": 286.2
  },
  "luminance": 0.11136
}

Semantic roles & 50–950 ramp

primary
#5F4AC0
secondary
#C3CD99
accent
#D850C0
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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