#5F4DAF#5F4DAF

#5F4DAF is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.0% C 0.150 H 288.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5F4DAF
RGBrgb(95, 77, 175)
HSLhsl(251, 39%, 49%)
HSVhsv(251, 56%, 69%)
CMYKcmyk(45.7%, 56%, 0%, 31.4%)
CIE-LABlab(39.30, 32.48, -50.06)
CIE-LCHlch(39.30, 59.68, 302.98°)
OKLaboklab(49.01% 0.0464 -0.1427)
OKLCHoklch(49.01% 0.15 288)
XYZxyz(15.1088, 10.8352, 41.8444)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DAF #9DAF4D
analogous
#4D6CAF #5F4DAF #904DAF
triadic
#5F4DAF #AF5F4D #4DAF5F
tetradic
#5F4DAF #AF4D6C #9DAF4D #4DAF90
square
#5F4DAF #AF4D6C #9DAF4D #4DAF90
split-complementary
#5F4DAF #AF904D #6CAF4D
monochromatic
#31285A #483A85 #5F4DAF #8476C3 #ABA1D6

Accessibility & contrast

On white

6.63
#5F4DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F4DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DAF
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DAF#FFFFFF#000000##FFFFFF
##5F4DAF1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155FB2
Deuteranopia (green-blind)
#165AAD
Tritanopia (blue-blind)
#466276
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4daf;
/* rgb */ color: rgb(95, 77, 175);
/* oklch */ color: oklch(49.0% 0.150 288.0);
Tailwind
colors: {
  custom: {
    50: '#927fc7',
    500: '#5f4daf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4daf;
$custom-light: #927fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4daf",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 251.02,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49013,
    "c": 0.15002,
    "h": 288
  },
  "luminance": 0.10836
}

Semantic roles & 50–950 ramp

primary
#5F4DAF
secondary
#BAC395
accent
#CF59B9
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5F4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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