#5F4FCC#5F4FCC

#5F4FCC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.5% C 0.186 H 283.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5F4FCC
RGBrgb(95, 79, 204)
HSLhsl(248, 55%, 55%)
HSVhsv(248, 61%, 80%)
CMYKcmyk(53.4%, 61.3%, 0%, 20%)
CIE-LABlab(41.82, 40.08, -62.94)
CIE-LCHlch(41.82, 74.61, 302.49°)
OKLaboklab(51.52% 0.0436 -0.1805)
OKLCHoklch(51.52% 0.186 283.6)
XYZxyz(18.4111, 12.3834, 58.5351)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FCC #BCCC4F
analogous
#4F7DCC #5F4FCC #9D4FCC
triadic
#5F4FCC #CC5F4F #4FCC5F
tetradic
#5F4FCC #CC4F7D #BCCC4F #4FCC9D
square
#5F4FCC #CC4F7D #BCCC4F #4FCC9D
split-complementary
#5F4FCC #CC9D4F #7DCC4F
monochromatic
#2F247D #4132AC #5F4FCC #8A7EDA #B5AEE7

Accessibility & contrast

On white

6.04
#5F4FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F4FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FCC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FCC#FFFFFF#000000##FFFFFF
##5F4FCC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#306D86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4fcc;
/* rgb */ color: rgb(95, 79, 204);
/* oklch */ color: oklch(51.5% 0.186 283.6);
Tailwind
colors: {
  custom: {
    50: '#9681dc',
    500: '#5f4fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fcc;
$custom-light: #9681dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fcc",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 247.68,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51517,
    "c": 0.1857,
    "h": 283.6
  },
  "luminance": 0.12384
}

Semantic roles & 50–950 ramp

primary
#5F4FCC
secondary
#CFD5A1
accent
#DE49CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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