#5F459F#5F459F

#5F459F is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.5% C 0.140 H 293.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5F459F
RGBrgb(95, 69, 159)
HSLhsl(257, 39%, 45%)
HSVhsv(257, 57%, 62%)
CMYKcmyk(40.3%, 56.6%, 0%, 37.6%)
CIE-LABlab(36.35, 32.65, -45.26)
CIE-LCHlch(36.35, 55.81, 305.80°)
OKLaboklab(46.49% 0.056 -0.1286)
OKLCHoklch(46.49% 0.14 293.5)
XYZxyz(13.1038, 9.1920, 33.8780)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F459F #859F45
analogous
#45589F #5F459F #8C459F
triadic
#5F459F #9F5F45 #459F5F
tetradic
#5F459F #9F4558 #859F45 #459F8C
square
#5F459F #9F4558 #859F45 #459F8C
split-complementary
#5F459F #9F8C45 #589F45
monochromatic
#2C204A #453274 #5F459F #7E65BC #A290CF

Accessibility & contrast

On white

7.40
#5F459F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5F459F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F459F
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F459F#FFFFFF#000000##FFFFFF
##5F459F1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1857A2
Deuteranopia (green-blind)
#20549D
Tritanopia (blue-blind)
#4E586B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f459f;
/* rgb */ color: rgb(95, 69, 159);
/* oklch */ color: oklch(46.5% 0.140 293.5);
Tailwind
colors: {
  custom: {
    50: '#9079bc',
    500: '#5f459f',
    950: '#000000',
  },
}
SCSS
$custom: #5f459f;
$custom-light: #9079bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f459f",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 159
  },
  "hsl": {
    "h": 257.333,
    "s": 39.474,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46492,
    "c": 0.14023,
    "h": 293.5
  },
  "luminance": 0.09192
}

Semantic roles & 50–950 ramp

primary
#5F459F
secondary
#ABBA86
accent
#CF58AD
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5F459F

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

Preview Lab → · Contrast checker → · Palette generator →

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