#5F4EE8#5F4EE8

#5F4EE8 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.6% C 0.222 H 280.8°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5F4EE8
RGBrgb(95, 78, 232)
HSLhsl(247, 77%, 61%)
HSVhsv(247, 66%, 91%)
CMYKcmyk(59.1%, 66.4%, 0%, 9%)
CIE-LABlab(43.81, 49.22, -75.69)
CIE-LCHlch(43.81, 90.29, 303.03°)
OKLaboklab(53.65% 0.0418 -0.218)
OKLCHoklch(53.65% 0.222 280.8)
XYZxyz(22.0046, 13.7063, 77.8143)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EE8 #D7E84E
analogous
#4E8AE8 #5F4EE8 #AC4EE8
triadic
#5F4EE8 #E85F4E #4EE85F
tetradic
#5F4EE8 #E84E8A #D7E84E #4EE8AC
square
#5F4EE8 #E84E8A #D7E84E #4EE8AC
split-complementary
#5F4EE8 #E8AC4E #8AE84E
monochromatic
#2616A6 #321DDC #5F4EE8 #9084EF #C1BAF6

Accessibility & contrast

On white

5.61
#5F4EE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5F4EE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EE8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EE8#FFFFFF#000000##FFFFFF
##5F4EE81.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0062E5
Tritanopia (blue-blind)
#007695
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f4ee8;
/* rgb */ color: rgb(95, 78, 232);
/* oklch */ color: oklch(53.6% 0.222 280.8);
Tailwind
colors: {
  custom: {
    50: '#9a81f0',
    500: '#5f4ee8',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ee8;
$custom-light: #9a81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ee8",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 232
  },
  "hsl": {
    "h": 246.623,
    "s": 77,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53649,
    "c": 0.22195,
    "h": 280.8
  },
  "luminance": 0.13708
}

Semantic roles & 50–950 ramp

primary
#5F4EE8
secondary
#E0E6AC
accent
#D90CC3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F4EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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