#5F4ABC#5F4ABC

#5F4ABC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.5% C 0.172 H 286.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5F4ABC
RGBrgb(95, 74, 188)
HSLhsl(251, 46%, 51%)
HSVhsv(251, 61%, 74%)
CMYKcmyk(49.5%, 60.6%, 0%, 26.3%)
CIE-LABlab(39.51, 38.18, -57.37)
CIE-LCHlch(39.51, 68.91, 303.64°)
OKLaboklab(49.46% 0.0496 -0.1642)
OKLCHoklch(49.46% 0.172 286.8)
XYZxyz(16.2425, 10.9605, 48.8270)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ABC #A7BC4A
analogous
#4A6EBC #5F4ABC #984ABC
triadic
#5F4ABC #BC5F4A #4ABC5F
tetradic
#5F4ABC #BC4A6E #A7BC4A #4ABC98
square
#5F4ABC #BC4A6E #A7BC4A #4ABC98
split-complementary
#5F4ABC #BC984A #6EBC4A
monochromatic
#322666 #473693 #5F4ABC #8677CD #AEA3DD

Accessibility & contrast

On white

6.58
#5F4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5F4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ABC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ABC#FFFFFF#000000##FFFFFF
##5F4ABC1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#3E657C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4abc;
/* rgb */ color: rgb(95, 74, 188);
/* oklch */ color: oklch(49.5% 0.172 286.8);
Tailwind
colors: {
  custom: {
    50: '#947dd1',
    500: '#5f4abc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4abc;
$custom-light: #947dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4abc",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 251.053,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49458,
    "c": 0.17151,
    "h": 286.8
  },
  "luminance": 0.10961
}

Semantic roles & 50–950 ramp

primary
#5F4ABC
secondary
#C1CA98
accent
#D652BD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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