#5F4FA2#5F4FA2

#5F4FA2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.5% C 0.129 H 289.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5F4FA2
RGBrgb(95, 79, 162)
HSLhsl(252, 34%, 47%)
HSVhsv(252, 51%, 64%)
CMYKcmyk(41.4%, 51.2%, 0%, 36.5%)
CIE-LABlab(38.96, 27.40, -42.89)
CIE-LCHlch(38.96, 50.89, 302.58°)
OKLaboklab(48.49% 0.0432 -0.1216)
OKLCHoklch(48.49% 0.129 289.6)
XYZxyz(14.0351, 10.6331, 35.4883)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FA2 #92A24F
analogous
#4F69A2 #5F4FA2 #884FA2
triadic
#5F4FA2 #A25F4F #4FA25F
tetradic
#5F4FA2 #A24F69 #92A24F #4FA288
square
#5F4FA2 #A24F69 #92A24F #4FA288
split-complementary
#5F4FA2 #A2884F #69A24F
monochromatic
#2F2750 #473B79 #5F4FA2 #8173BB #A69CCF

Accessibility & contrast

On white

6.72
#5F4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5F4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FA2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FA2#FFFFFF#000000##FFFFFF
##5F4FA21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#2E5AA0
Tritanopia (blue-blind)
#4C6071
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4fa2;
/* rgb */ color: rgb(95, 79, 162);
/* oklch */ color: oklch(48.5% 0.129 289.6);
Tailwind
colors: {
  custom: {
    50: '#9080be',
    500: '#5f4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fa2;
$custom-light: #9080be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fa2",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 251.566,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48488,
    "c": 0.12904,
    "h": 289.6
  },
  "luminance": 0.10633
}

Semantic roles & 50–950 ramp

primary
#5F4FA2
secondary
#B4BC91
accent
#CB5DB5
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5F4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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