#5F4FC8#5F4FC8

#5F4FC8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.2% C 0.181 H 284.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5F4FC8
RGBrgb(95, 79, 200)
HSLhsl(248, 52%, 55%)
HSVhsv(248, 61%, 78%)
CMYKcmyk(52.5%, 60.5%, 0%, 21.6%)
CIE-LABlab(41.52, 38.86, -61.10)
CIE-LCHlch(41.52, 72.41, 302.45°)
OKLaboklab(51.21% 0.0438 -0.1751)
OKLCHoklch(51.21% 0.181 284)
XYZxyz(17.9375, 12.1940, 56.0409)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FC8 #B8C84F
analogous
#4F7CC8 #5F4FC8 #9C4FC8
triadic
#5F4FC8 #C85F4F #4FC85F
tetradic
#5F4FC8 #C84F7C #B8C84F #4FC89C
square
#5F4FC8 #C84F7C #B8C84F #4FC89C
split-complementary
#5F4FC8 #C89C4F #7CC84F
monochromatic
#302577 #4334A6 #5F4FC8 #897ED7 #B4ACE5

Accessibility & contrast

On white

6.11
#5F4FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5F4FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FC8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FC8#FFFFFF#000000##FFFFFF
##5F4FC81.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#346C84
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4fc8;
/* rgb */ color: rgb(95, 79, 200);
/* oklch */ color: oklch(51.2% 0.181 284.0);
Tailwind
colors: {
  custom: {
    50: '#9581da',
    500: '#5f4fc8',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fc8;
$custom-light: #9581da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fc8",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 247.934,
    "s": 52.381,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51207,
    "c": 0.18053,
    "h": 284
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#5F4FC8
secondary
#CCD3A0
accent
#DC4CC9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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