#5F4FC7#5F4FC7

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

Color values

HEX#5F4FC7
RGBrgb(95, 79, 199)
HSLhsl(248, 52%, 55%)
HSVhsv(248, 60%, 78%)
CMYKcmyk(52.3%, 60.3%, 0%, 22%)
CIE-LABlab(41.45, 38.55, -60.64)
CIE-LCHlch(41.45, 71.86, 302.44°)
OKLaboklab(51.13% 0.0438 -0.1738)
OKLCHoklch(51.13% 0.179 284.2)
XYZxyz(17.8210, 12.1474, 55.4274)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FC7 #B7C74F
analogous
#4F7BC7 #5F4FC7 #9B4FC7
triadic
#5F4FC7 #C75F4F #4FC75F
tetradic
#5F4FC7 #C74F7B #B7C74F #4FC79B
square
#5F4FC7 #C74F7B #B7C74F #4FC79B
split-complementary
#5F4FC7 #C79B4F #7BC74F
monochromatic
#302676 #4334A4 #5F4FC7 #897DD6 #B3ACE5

Accessibility & contrast

On white

6.12
#5F4FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F4FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FC7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FC7#FFFFFF#000000##FFFFFF
##5F4FC71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#356B83
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4fc7;
/* rgb */ color: rgb(95, 79, 199);
/* oklch */ color: oklch(51.1% 0.179 284.2);
Tailwind
colors: {
  custom: {
    50: '#9581d9',
    500: '#5f4fc7',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fc7;
$custom-light: #9581d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fc7",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 248,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5113,
    "c": 0.17922,
    "h": 284.2
  },
  "luminance": 0.12148
}

Semantic roles & 50–950 ramp

primary
#5F4FC7
secondary
#CCD2A0
accent
#DB4DC8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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