#5F4CCC#5F4CCC

#5F4CCC is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.0% C 0.190 H 284.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5F4CCC
RGBrgb(95, 76, 204)
HSLhsl(249, 56%, 55%)
HSVhsv(249, 63%, 80%)
CMYKcmyk(53.4%, 62.7%, 0%, 20%)
CIE-LABlab(41.15, 41.84, -64.02)
CIE-LCHlch(41.15, 76.48, 303.17°)
OKLaboklab(51.03% 0.0465 -0.1837)
OKLCHoklch(51.03% 0.19 284.2)
XYZxyz(18.1995, 11.9604, 58.4646)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CCC #B9CC4C
analogous
#4C79CC #5F4CCC #9F4CCC
triadic
#5F4CCC #CC5F4C #4CCC5F
tetradic
#5F4CCC #CC4C79 #B9CC4C #4CCC9F
square
#5F4CCC #CC4C79 #B9CC4C #4CCC9F
split-complementary
#5F4CCC #CC9F4C #79CC4C
monochromatic
#30237B #4331AA #5F4CCC #8A7CDA #B4ABE7

Accessibility & contrast

On white

6.19
#5F4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5F4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CCC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CCC#FFFFFF#000000##FFFFFF
##5F4CCC1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f4ccc;
/* rgb */ color: rgb(95, 76, 204);
/* oklch */ color: oklch(51.0% 0.190 284.2);
Tailwind
colors: {
  custom: {
    50: '#967fdc',
    500: '#5f4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ccc;
$custom-light: #967fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ccc",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 248.906,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51031,
    "c": 0.18952,
    "h": 284.2
  },
  "luminance": 0.11961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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