#5F4E8A#5F4E8A

#5F4E8A is a mid, moderate violet. Relative luminance 0.097; OKLCH L 46.8% C 0.096 H 295.5°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5F4E8A
RGBrgb(95, 78, 138)
HSLhsl(257, 28%, 42%)
HSVhsv(257, 43%, 54%)
CMYKcmyk(31.2%, 43.5%, 0%, 45.9%)
CIE-LABlab(37.33, 21.18, -30.98)
CIE-LCHlch(37.33, 37.53, 304.35°)
OKLaboklab(46.82% 0.0414 -0.0868)
OKLCHoklch(46.82% 0.096 295.5)
XYZxyz(12.0300, 9.7165, 25.2815)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4E8A #798A4E
analogous
#4E5B8A #5F4E8A #7D4E8A
triadic
#5F4E8A #8A5F4E #4E8A5F
tetradic
#5F4E8A #8A4E5B #798A4E #4E8A7D
square
#5F4E8A #8A4E5B #798A4E #4E8A7D
split-complementary
#5F4E8A #8A7D4E #5B8A4E
monochromatic
#29223C #443863 #5F4E8A #7D6AAB #9F91C1

Accessibility & contrast

On white

7.13
#5F4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5F4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4E8A
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4E8A#FFFFFF#000000##FFFFFF
##5F4E8A1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C588C
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#565965
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f4e8a;
/* rgb */ color: rgb(95, 78, 138);
/* oklch */ color: oklch(46.8% 0.096 295.5);
Tailwind
colors: {
  custom: {
    50: '#8e7fac',
    500: '#5f4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f4e8a;
$custom-light: #8e7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4e8a",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 257,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46819,
    "c": 0.09615,
    "h": 295.5
  },
  "luminance": 0.09717
}

Semantic roles & 50–950 ramp

primary
#5F4E8A
secondary
#A2AE86
accent
#C464A9
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5F4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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