#5F489D#5F489D

#5F489D is a mid, vivid violet. Relative luminance 0.095; OKLCH L 46.9% C 0.133 H 293.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5F489D
RGBrgb(95, 72, 157)
HSLhsl(256, 37%, 45%)
HSVhsv(256, 54%, 62%)
CMYKcmyk(39.5%, 54.1%, 0%, 38.4%)
CIE-LABlab(36.93, 30.25, -43.13)
CIE-LCHlch(36.93, 52.68, 305.05°)
OKLaboklab(46.88% 0.052 -0.1223)
OKLCHoklch(46.88% 0.133 293)
XYZxyz(13.1209, 9.5016, 33.0344)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F489D #869D48
analogous
#485C9D #5F489D #89489D
triadic
#5F489D #9D5F48 #489D5F
tetradic
#5F489D #9D485C #869D48 #489D89
square
#5F489D #9D485C #869D48 #489D89
split-complementary
#5F489D #9D8948 #5C9D48
monochromatic
#2C2249 #463573 #5F489D #7E68BA #A292CD

Accessibility & contrast

On white

7.24
#5F489D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F489D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F489D
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F489D#FFFFFF#000000##FFFFFF
##5F489D1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A0
Deuteranopia (green-blind)
#28559B
Tritanopia (blue-blind)
#4F5A6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f489d;
/* rgb */ color: rgb(95, 72, 157);
/* oklch */ color: oklch(46.9% 0.133 293.0);
Tailwind
colors: {
  custom: {
    50: '#907bba',
    500: '#5f489d',
    950: '#000000',
  },
}
SCSS
$custom: #5f489d;
$custom-light: #907bba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f489d",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 157
  },
  "hsl": {
    "h": 256.235,
    "s": 37.118,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46881,
    "c": 0.1329,
    "h": 293
  },
  "luminance": 0.09502
}

Semantic roles & 50–950 ramp

primary
#5F489D
secondary
#ACB988
accent
#CD5BAE
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5F489D

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

Preview Lab → · Contrast checker → · Palette generator →

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