#5F4DCB#5F4DCB

#5F4DCB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.1% C 0.187 H 284.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5F4DCB
RGBrgb(95, 77, 203)
HSLhsl(249, 55%, 55%)
HSVhsv(249, 62%, 80%)
CMYKcmyk(53.2%, 62.1%, 0%, 20.4%)
CIE-LABlab(41.30, 40.95, -63.20)
CIE-LCHlch(41.30, 75.31, 302.94°)
OKLaboklab(51.11% 0.0456 -0.1813)
OKLCHoklch(51.11% 0.187 284.1)
XYZxyz(18.1494, 12.0514, 57.8581)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DCB #B9CB4D
analogous
#4D7ACB #5F4DCB #9E4DCB
triadic
#5F4DCB #CB5F4D #4DCB5F
tetradic
#5F4DCB #CB4D7A #B9CB4D #4DCB9E
square
#5F4DCB #CB4D7A #B9CB4D #4DCB9E
split-complementary
#5F4DCB #CB9E4D #7ACB4D
monochromatic
#30247A #4331A9 #5F4DCB #8A7CD9 #B4ACE7

Accessibility & contrast

On white

6.16
#5F4DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5F4DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DCB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DCB#FFFFFF#000000##FFFFFF
##5F4DCB1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#316B85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4dcb;
/* rgb */ color: rgb(95, 77, 203);
/* oklch */ color: oklch(51.1% 0.187 284.1);
Tailwind
colors: {
  custom: {
    50: '#9680dc',
    500: '#5f4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dcb;
$custom-light: #9680dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dcb",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 248.571,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.18697,
    "h": 284.1
  },
  "luminance": 0.12052
}

Semantic roles & 50–950 ramp

primary
#5F4DCB
secondary
#CDD49F
accent
#DE4AC9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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