#5F488C#5F488C

#5F488C is a mid, moderate violet. Relative luminance 0.090; OKLCH L 45.8% C 0.109 H 297.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F488C
RGBrgb(95, 72, 140)
HSLhsl(260, 32%, 42%)
HSVhsv(260, 49%, 55%)
CMYKcmyk(32.1%, 48.6%, 0%, 45.1%)
CIE-LABlab(35.91, 25.47, -34.45)
CIE-LCHlch(35.91, 42.84, 306.48°)
OKLaboklab(45.79% 0.0505 -0.0969)
OKLCHoklch(45.79% 0.109 297.5)
XYZxyz(11.7692, 8.9609, 25.9154)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F488C #758C48
analogous
#48538C #5F488C #81488C
triadic
#5F488C #8C5F48 #488C5F
tetradic
#5F488C #8C4853 #758C48 #488C81
square
#5F488C #8C4853 #758C48 #488C81
split-complementary
#5F488C #8C8148 #538C48
monochromatic
#281E3B #443364 #5F488C #7C63AF #9E8BC3

Accessibility & contrast

On white

7.52
#5F488C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F488C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F488C
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F488C#FFFFFF#000000##FFFFFF
##5F488C1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558E
Deuteranopia (green-blind)
#37548A
Tritanopia (blue-blind)
#555563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f488c;
/* rgb */ color: rgb(95, 72, 140);
/* oklch */ color: oklch(45.8% 0.109 297.5);
Tailwind
colors: {
  custom: {
    50: '#8e7bae',
    500: '#5f488c',
    950: '#000000',
  },
}
SCSS
$custom: #5f488c;
$custom-light: #8e7bae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f488c",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 140
  },
  "hsl": {
    "h": 260.294,
    "s": 32.075,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45786,
    "c": 0.10925,
    "h": 297.5
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#5F488C
secondary
#9FAF81
accent
#C860A5
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5F488C

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

Preview Lab → · Contrast checker → · Palette generator →

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