#5F489A#5F489A

#5F489A is a mid, vivid violet. Relative luminance 0.094; OKLCH L 46.7% C 0.129 H 293.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5F489A
RGBrgb(95, 72, 154)
HSLhsl(257, 36%, 44%)
HSVhsv(257, 53%, 60%)
CMYKcmyk(38.3%, 53.2%, 0%, 39.6%)
CIE-LABlab(36.74, 29.39, -41.62)
CIE-LCHlch(36.74, 50.95, 305.23°)
OKLaboklab(46.68% 0.0519 -0.1179)
OKLCHoklch(46.68% 0.129 293.7)
XYZxyz(12.8679, 9.4004, 31.7021)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F489A #839A48
analogous
#485A9A #5F489A #88489A
triadic
#5F489A #9A5F48 #489A5F
tetradic
#5F489A #9A485A #839A48 #489A88
square
#5F489A #9A485A #839A48 #489A88
split-complementary
#5F489A #9A8848 #5A9A48
monochromatic
#2C2147 #453570 #5F489A #7E67B8 #A191CC

Accessibility & contrast

On white

7.29
#5F489A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5F489A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F489A
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F489A#FFFFFF#000000##FFFFFF
##5F489A1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579D
Deuteranopia (green-blind)
#2B5598
Tritanopia (blue-blind)
#50596A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f489a;
/* rgb */ color: rgb(95, 72, 154);
/* oklch */ color: oklch(46.7% 0.129 293.7);
Tailwind
colors: {
  custom: {
    50: '#907bb8',
    500: '#5f489a',
    950: '#000000',
  },
}
SCSS
$custom: #5f489a;
$custom-light: #907bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f489a",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 154
  },
  "hsl": {
    "h": 256.829,
    "s": 36.283,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4668,
    "c": 0.12878,
    "h": 293.7
  },
  "luminance": 0.09401
}

Semantic roles & 50–950 ramp

primary
#5F489A
secondary
#AAB786
accent
#CC5CAD
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F489A

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

Preview Lab → · Contrast checker → · Palette generator →

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