#5F4FF2#5F4FF2

#5F4FF2 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.7% C 0.233 H 279.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5F4FF2
RGBrgb(95, 79, 242)
HSLhsl(246, 86%, 63%)
HSVhsv(246, 67%, 95%)
CMYKcmyk(60.7%, 67.4%, 0%, 5.1%)
CIE-LABlab(44.85, 51.71, -79.63)
CIE-LCHlch(44.85, 94.94, 303.00°)
OKLaboklab(54.66% 0.0396 -0.2295)
OKLCHoklch(54.66% 0.233 279.8)
XYZxyz(23.5372, 14.4339, 85.5329)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FF2 #E2F24F
analogous
#4F90F2 #5F4FF2 #B14FF2
triadic
#5F4FF2 #F25F4F #4FF25F
tetradic
#5F4FF2 #F24F90 #E2F24F #4FF2B1
square
#5F4FF2 #F24F90 #E2F24F #4FF2B1
split-complementary
#5F4FF2 #F2B14F #90F24F
monochromatic
#1E0EB9 #2B16EE #5F4FF2 #9388F6 #C7C1FA

Accessibility & contrast

On white

5.40
#5F4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5F4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FF2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FF2#FFFFFF#000000##FFFFFF
##5F4FF21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f4ff2;
/* rgb */ color: rgb(95, 79, 242);
/* oklch */ color: oklch(54.7% 0.233 279.8);
Tailwind
colors: {
  custom: {
    50: '#9b82f8',
    500: '#5f4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ff2;
$custom-light: #9b82f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ff2",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 245.89,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54655,
    "c": 0.23291,
    "h": 279.8
  },
  "luminance": 0.14436
}

Semantic roles & 50–950 ramp

primary
#5F4FF2
secondary
#E6ECB1
accent
#E303CD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #5F4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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