#5F4697#5F4697

#5F4697 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.1% C 0.128 H 295.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5F4697
RGBrgb(95, 70, 151)
HSLhsl(259, 37%, 43%)
HSVhsv(259, 54%, 59%)
CMYKcmyk(37.1%, 53.6%, 0%, 40.8%)
CIE-LABlab(36.08, 29.77, -40.88)
CIE-LCHlch(36.08, 50.57, 306.06°)
OKLaboklab(46.12% 0.0543 -0.1157)
OKLCHoklch(46.12% 0.128 295.2)
XYZxyz(12.4940, 9.0473, 30.3602)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4697 #7E9746
analogous
#465597 #5F4697 #874697
triadic
#5F4697 #975F46 #46975F
tetradic
#5F4697 #974655 #7E9746 #469787
square
#5F4697 #974655 #7E9746 #469787
split-complementary
#5F4697 #978746 #559746
monochromatic
#2A1F43 #45336D #5F4697 #7D63B7 #A08DCA

Accessibility & contrast

On white

7.47
#5F4697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5F4697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4697
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4697#FFFFFF#000000##FFFFFF
##5F46971.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#2B5495
Tritanopia (blue-blind)
#525667
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f4697;
/* rgb */ color: rgb(95, 70, 151);
/* oklch */ color: oklch(46.1% 0.128 295.2);
Tailwind
colors: {
  custom: {
    50: '#907ab6',
    500: '#5f4697',
    950: '#000000',
  },
}
SCSS
$custom: #5f4697;
$custom-light: #907ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4697",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 151
  },
  "hsl": {
    "h": 258.519,
    "s": 36.652,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46123,
    "c": 0.12783,
    "h": 295.2
  },
  "luminance": 0.09048
}

Semantic roles & 50–950 ramp

primary
#5F4697
secondary
#A6B683
accent
#CD5BAA
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F4697

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

Preview Lab → · Contrast checker → · Palette generator →

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