#5F4FC2#5F4FC2

#5F4FC2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.7% C 0.173 H 284.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5F4FC2
RGBrgb(95, 79, 194)
HSLhsl(248, 49%, 54%)
HSVhsv(248, 59%, 76%)
CMYKcmyk(51%, 59.3%, 0%, 23.9%)
CIE-LABlab(41.09, 37.02, -58.32)
CIE-LCHlch(41.09, 69.08, 302.41°)
OKLaboklab(50.75% 0.044 -0.167)
OKLCHoklch(50.75% 0.173 284.8)
XYZxyz(17.2500, 11.9190, 52.4201)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FC2 #B2C24F
analogous
#4F78C2 #5F4FC2 #984FC2
triadic
#5F4FC2 #C25F4F #4FC25F
tetradic
#5F4FC2 #C24F78 #B2C24F #4FC298
square
#5F4FC2 #C24F78 #B2C24F #4FC298
split-complementary
#5F4FC2 #C2984F #78C24F
monochromatic
#312770 #45379D #5F4FC2 #887CD2 #B2AAE2

Accessibility & contrast

On white

6.21
#5F4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5F4FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FC2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FC2#FFFFFF#000000##FFFFFF
##5F4FC21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#396A81
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f4fc2;
/* rgb */ color: rgb(95, 79, 194);
/* oklch */ color: oklch(50.7% 0.173 284.8);
Tailwind
colors: {
  custom: {
    50: '#9481d5',
    500: '#5f4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fc2;
$custom-light: #9481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fc2",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 248.348,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5075,
    "c": 0.17267,
    "h": 284.8
  },
  "luminance": 0.1192
}

Semantic roles & 50–950 ramp

primary
#5F4FC2
secondary
#C8CF9E
accent
#D850C5
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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