#5F4EE4#5F4EE4

#5F4EE4 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.3% C 0.217 H 281.2°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5F4EE4
RGBrgb(95, 78, 228)
HSLhsl(247, 74%, 60%)
HSVhsv(247, 66%, 89%)
CMYKcmyk(58.3%, 65.8%, 0%, 10.6%)
CIE-LABlab(43.48, 48.00, -73.96)
CIE-LCHlch(43.48, 88.18, 302.98°)
OKLaboklab(53.31% 0.0423 -0.2129)
OKLCHoklch(53.31% 0.217 281.2)
XYZxyz(21.4429, 13.4816, 74.8560)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EE4 #D3E44E
analogous
#4E88E4 #5F4EE4 #AA4EE4
triadic
#5F4EE4 #E45F4E #4EE45F
tetradic
#5F4EE4 #E44E88 #D3E44E #4EE4AA
square
#5F4EE4 #E44E88 #D3E44E #4EE4AA
split-complementary
#5F4EE4 #E4AA4E #88E44E
monochromatic
#28189F #3520D4 #5F4EE4 #8F83EC #BFB8F4

Accessibility & contrast

On white

5.68
#5F4EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5F4EE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EE4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EE4#FFFFFF#000000##FFFFFF
##5F4EE41.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#0061E1
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f4ee4;
/* rgb */ color: rgb(95, 78, 228);
/* oklch */ color: oklch(53.3% 0.217 281.2);
Tailwind
colors: {
  custom: {
    50: '#9981ee',
    500: '#5f4ee4',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ee4;
$custom-light: #9981ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ee4",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 228
  },
  "hsl": {
    "h": 246.8,
    "s": 73.529,
    "l": 60
  },
  "oklch": {
    "l": 0.5331,
    "c": 0.21707,
    "h": 281.2
  },
  "luminance": 0.13483
}

Semantic roles & 50–950 ramp

primary
#5F4EE4
secondary
#DDE4AA
accent
#F038DB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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