#5F4EF2#5F4EF2

#5F4EF2 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.5% C 0.234 H 279.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F4EF2
RGBrgb(95, 78, 242)
HSLhsl(246, 86%, 63%)
HSVhsv(246, 68%, 95%)
CMYKcmyk(60.7%, 67.8%, 0%, 5.1%)
CIE-LABlab(44.65, 52.26, -79.96)
CIE-LCHlch(44.65, 95.52, 303.17°)
OKLaboklab(54.51% 0.0404 -0.2305)
OKLCHoklch(54.51% 0.234 279.9)
XYZxyz(23.4656, 14.2907, 85.5090)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EF2 #E1F24E
analogous
#4E8FF2 #5F4EF2 #B14EF2
triadic
#5F4EF2 #F25F4E #4EF25F
tetradic
#5F4EF2 #F24E8F #E1F24E #4EF2B1
square
#5F4EF2 #F24E8F #E1F24E #4EF2B1
split-complementary
#5F4EF2 #F2B14E #8FF24E
monochromatic
#1F0EB8 #2B15EE #5F4EF2 #9387F6 #C6C0FA

Accessibility & contrast

On white

5.44
#5F4EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5F4EF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EF2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EF2#FFFFFF#000000##FFFFFF
##5F4EF21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F7
Deuteranopia (green-blind)
#0063EF
Tritanopia (blue-blind)
#007A9A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f4ef2;
/* rgb */ color: rgb(95, 78, 242);
/* oklch */ color: oklch(54.5% 0.234 279.9);
Tailwind
colors: {
  custom: {
    50: '#9c81f8',
    500: '#5f4ef2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ef2;
$custom-light: #9c81f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ef2",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 242
  },
  "hsl": {
    "h": 246.22,
    "s": 86.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5451,
    "c": 0.234,
    "h": 279.9
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#5F4EF2
secondary
#E5ECB0
accent
#E303CC
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #5F4EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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