#5F4CCD#5F4CCD

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

Color values

HEX#5F4CCD
RGBrgb(95, 76, 205)
HSLhsl(249, 56%, 55%)
HSVhsv(249, 63%, 80%)
CMYKcmyk(53.7%, 62.9%, 0%, 19.6%)
CIE-LABlab(41.23, 42.14, -64.47)
CIE-LCHlch(41.23, 77.02, 303.17°)
OKLaboklab(51.11% 0.0464 -0.185)
OKLCHoklch(51.11% 0.191 284.1)
XYZxyz(18.3199, 12.0085, 59.0983)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CCD #BACD4C
analogous
#4C7ACD #5F4CCD #9F4CCD
triadic
#5F4CCD #CD5F4C #4CCD5F
tetradic
#5F4CCD #CD4C7A #BACD4C #4CCD9F
square
#5F4CCD #CD4C7A #BACD4C #4CCD9F
split-complementary
#5F4CCD #CD9F4C #7ACD4C
monochromatic
#30237C #4230AC #5F4CCD #8A7CDA #B5ACE8

Accessibility & contrast

On white

6.17
#5F4CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5F4CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CCD
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CCD#FFFFFF#000000##FFFFFF
##5F4CCD1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#2F6B85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4ccd;
/* rgb */ color: rgb(95, 76, 205);
/* oklch */ color: oklch(51.1% 0.191 284.1);
Tailwind
colors: {
  custom: {
    50: '#967fdd',
    500: '#5f4ccd',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ccd;
$custom-light: #967fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ccd",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 205
  },
  "hsl": {
    "h": 248.837,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51111,
    "c": 0.19079,
    "h": 284.1
  },
  "luminance": 0.1201
}

Semantic roles & 50–950 ramp

primary
#5F4CCD
secondary
#CDD59F
accent
#E048C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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