#5F4FEA#5F4FEA

#5F4FEA is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 54.0% C 0.223 H 280.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5F4FEA
RGBrgb(95, 79, 234)
HSLhsl(246, 79%, 61%)
HSVhsv(246, 66%, 92%)
CMYKcmyk(59.4%, 66.2%, 0%, 8.2%)
CIE-LABlab(44.18, 49.27, -76.21)
CIE-LCHlch(44.18, 90.75, 302.88°)
OKLaboklab(53.97% 0.0407 -0.2195)
OKLCHoklch(53.97% 0.223 280.5)
XYZxyz(22.3619, 13.9638, 79.3428)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FEA #DAEA4F
analogous
#4F8DEA #5F4FEA #AD4FEA
triadic
#5F4FEA #EA5F4F #4FEA5F
tetradic
#5F4FEA #EA4F8D #DAEA4F #4FEAAD
square
#5F4FEA #EA4F8D #DAEA4F #4FEAAD
split-complementary
#5F4FEA #EAAD4F #8DEA4F
monochromatic
#2414AA #2F1BE1 #5F4FEA #9186F1 #C2BCF7

Accessibility & contrast

On white

5.54
#5F4FEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5F4FEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FEA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FEA#FFFFFF#000000##FFFFFF
##5F4FEA1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEF
Deuteranopia (green-blind)
#0063E7
Tritanopia (blue-blind)
#007796
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f4fea;
/* rgb */ color: rgb(95, 79, 234);
/* oklch */ color: oklch(54.0% 0.223 280.5);
Tailwind
colors: {
  custom: {
    50: '#9a82f2',
    500: '#5f4fea',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fea;
$custom-light: #9a82f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fea",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 234
  },
  "hsl": {
    "h": 246.194,
    "s": 78.68,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53968,
    "c": 0.22326,
    "h": 280.5
  },
  "luminance": 0.13965
}

Semantic roles & 50–950 ramp

primary
#5F4FEA
secondary
#E1E7AD
accent
#DB0BC5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F4FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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