#5F4792#5F4792

#5F4792 is a mid, moderate violet. Relative luminance 0.090; OKLCH L 46.0% C 0.119 H 296.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5F4792
RGBrgb(95, 71, 146)
HSLhsl(259, 35%, 43%)
HSVhsv(259, 51%, 57%)
CMYKcmyk(34.9%, 51.4%, 0%, 42.7%)
CIE-LABlab(36.01, 27.75, -37.94)
CIE-LCHlch(36.01, 47.01, 306.18°)
OKLaboklab(45.98% 0.0526 -0.1071)
OKLCHoklch(45.98% 0.119 296.1)
XYZxyz(12.1596, 9.0145, 28.2879)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4792 #7A9247
analogous
#475592 #5F4792 #844792
triadic
#5F4792 #925F47 #47925F
tetradic
#5F4792 #924755 #7A9247 #479284
square
#5F4792 #924755 #7A9247 #479284
split-complementary
#5F4792 #928447 #559247
monochromatic
#291F40 #443369 #5F4792 #7D63B3 #9F8CC7

Accessibility & contrast

On white

7.49
#5F4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4792
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4792#FFFFFF#000000##FFFFFF
##5F47921.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5595
Deuteranopia (green-blind)
#315490
Tritanopia (blue-blind)
#535665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f4792;
/* rgb */ color: rgb(95, 71, 146);
/* oklch */ color: oklch(46.0% 0.119 296.1);
Tailwind
colors: {
  custom: {
    50: '#8f7bb2',
    500: '#5f4792',
    950: '#000000',
  },
}
SCSS
$custom: #5f4792;
$custom-light: #8f7bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4792",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 259.2,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.11931,
    "h": 296.1
  },
  "luminance": 0.09015
}

Semantic roles & 50–950 ramp

primary
#5F4792
secondary
#A3B382
accent
#CB5DA8
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F4792

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

Preview Lab → · Contrast checker → · Palette generator →

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