#5F489F#5F489F

#5F489F is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.0% C 0.136 H 292.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5F489F
RGBrgb(95, 72, 159)
HSLhsl(256, 38%, 45%)
HSVhsv(256, 55%, 62%)
CMYKcmyk(40.3%, 54.7%, 0%, 37.6%)
CIE-LABlab(37.06, 30.83, -44.12)
CIE-LCHlch(37.06, 53.83, 304.94°)
OKLaboklab(47.02% 0.0521 -0.1252)
OKLCHoklch(47.02% 0.136 292.6)
XYZxyz(13.2930, 9.5705, 33.9411)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F489F #889F48
analogous
#485D9F #5F489F #8A489F
triadic
#5F489F #9F5F48 #489F5F
tetradic
#5F489F #9F485D #889F48 #489F8A
square
#5F489F #9F485D #889F48 #489F8A
split-complementary
#5F489F #9F8A48 #5D9F48
monochromatic
#2D224B #463575 #5F489F #7F69BB #A393CE

Accessibility & contrast

On white

7.21
#5F489F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F489F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F489F
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F489F#FFFFFF#000000##FFFFFF
##5F489F1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2058A2
Deuteranopia (green-blind)
#25569D
Tritanopia (blue-blind)
#4E5A6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f489f;
/* rgb */ color: rgb(95, 72, 159);
/* oklch */ color: oklch(47.0% 0.136 292.6);
Tailwind
colors: {
  custom: {
    50: '#907bbc',
    500: '#5f489f',
    950: '#000000',
  },
}
SCSS
$custom: #5f489f;
$custom-light: #907bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f489f",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 159
  },
  "hsl": {
    "h": 255.862,
    "s": 37.662,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47016,
    "c": 0.13565,
    "h": 292.6
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#5F489F
secondary
#ADBA89
accent
#CE5AAF
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5F489F

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

Preview Lab → · Contrast checker → · Palette generator →

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