#5F4397#5F4397

#5F4397 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.133 H 296.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5F4397
RGBrgb(95, 67, 151)
HSLhsl(260, 39%, 43%)
HSVhsv(260, 56%, 59%)
CMYKcmyk(37.1%, 55.6%, 0%, 40.8%)
CIE-LABlab(35.36, 31.59, -42.02)
CIE-LCHlch(35.36, 52.56, 306.94°)
OKLaboklab(45.6% 0.0583 -0.119)
OKLCHoklch(45.6% 0.133 296.1)
XYZxyz(12.3110, 8.6814, 30.2992)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4397 #7B9743
analogous
#435197 #5F4397 #894397
triadic
#5F4397 #975F43 #43975F
tetradic
#5F4397 #974351 #7B9743 #439789
square
#5F4397 #974351 #7B9743 #439789
split-complementary
#5F4397 #978943 #519743
monochromatic
#2A1D42 #44306D #5F4397 #7D5FB8 #9F8ACB

Accessibility & contrast

On white

7.67
#5F4397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F4397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4397
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4397#FFFFFF#000000##FFFFFF
##5F43971.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#525466
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f4397;
/* rgb */ color: rgb(95, 67, 151);
/* oklch */ color: oklch(45.6% 0.133 296.1);
Tailwind
colors: {
  custom: {
    50: '#9078b6',
    500: '#5f4397',
    950: '#000000',
  },
}
SCSS
$custom: #5f4397;
$custom-light: #9078b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4397",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 260,
    "s": 38.532,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45595,
    "c": 0.13258,
    "h": 296.1
  },
  "luminance": 0.08682
}

Semantic roles & 50–950 ramp

primary
#5F4397
secondary
#A4B680
accent
#CE59A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F4397

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

Preview Lab → · Contrast checker → · Palette generator →

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