#5F459D#5F459D

#5F459D is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.4% C 0.138 H 294.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5F459D
RGBrgb(95, 69, 157)
HSLhsl(258, 39%, 44%)
HSVhsv(258, 56%, 62%)
CMYKcmyk(39.5%, 56.1%, 0%, 38.4%)
CIE-LABlab(36.22, 32.07, -44.27)
CIE-LCHlch(36.22, 54.67, 305.93°)
OKLaboklab(46.35% 0.0559 -0.1257)
OKLCHoklch(46.35% 0.138 294)
XYZxyz(12.9316, 9.1232, 32.9714)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F459D #839D45
analogous
#45579D #5F459D #8B459D
triadic
#5F459D #9D5F45 #459D5F
tetradic
#5F459D #9D4557 #839D45 #459D8B
square
#5F459D #9D4557 #839D45 #459D8B
split-complementary
#5F459D #9D8B45 #579D45
monochromatic
#2C2048 #453272 #5F459D #7E64BB #A18FCE

Accessibility & contrast

On white

7.43
#5F459D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F459D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F459D
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F459D#FFFFFF#000000##FFFFFF
##5F459D1.007.432.827.43
#FFFFFF7.431.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B56A0
Deuteranopia (green-blind)
#22549B
Tritanopia (blue-blind)
#4F576A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f459d;
/* rgb */ color: rgb(95, 69, 157);
/* oklch */ color: oklch(46.4% 0.138 294.0);
Tailwind
colors: {
  custom: {
    50: '#9079ba',
    500: '#5f459d',
    950: '#000000',
  },
}
SCSS
$custom: #5f459d;
$custom-light: #9079ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f459d",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 157
  },
  "hsl": {
    "h": 257.727,
    "s": 38.938,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46353,
    "c": 0.13754,
    "h": 294
  },
  "luminance": 0.09123
}

Semantic roles & 50–950 ramp

primary
#5F459D
secondary
#AAB985
accent
#CF59AC
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5F459D

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

Preview Lab → · Contrast checker → · Palette generator →

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