#5F4AFF#5F4AFF

#5F4AFF is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 55.1% C 0.253 H 279.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5F4AFF
RGBrgb(95, 74, 255)
HSLhsl(247, 100%, 65%)
HSVhsv(247, 71%, 100%)
CMYKcmyk(62.7%, 71%, 0%, 0%)
CIE-LABlab(45.01, 58.29, -86.64)
CIE-LCHlch(45.01, 104.42, 303.93°)
OKLaboklab(55.12% 0.041 -0.25)
OKLCHoklch(55.12% 0.253 279.3)
XYZxyz(25.2123, 14.5485, 96.0679)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4AFF #EAFF4A
analogous
#4A90FF #5F4AFF #B94AFF
triadic
#5F4AFF #FF5F4A #4AFF5F
tetradic
#5F4AFF #FF4A90 #EAFF4A #4AFFB9
square
#5F4AFF #FF4A90 #EAFF4A #4AFFB9
split-complementary
#5F4AFF #FFB94A #90FF4A
monochromatic
#1800CF #290DFF #5F4AFF #9587FF #CBC4FF

Accessibility & contrast

On white

5.37
#5F4AFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5F4AFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4AFF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4AFF#FFFFFF#000000##FFFFFF
##5F4AFF1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071FF
Deuteranopia (green-blind)
#0063FC
Tritanopia (blue-blind)
#007CA0
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f4aff;
/* rgb */ color: rgb(95, 74, 255);
/* oklch */ color: oklch(55.1% 0.253 279.3);
Tailwind
colors: {
  custom: {
    50: '#9e7fff',
    500: '#5f4aff',
    950: '#000000',
  },
}
SCSS
$custom: #5f4aff;
$custom-light: #9e7fff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4aff",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 255
  },
  "hsl": {
    "h": 246.961,
    "s": 100,
    "l": 64.51
  },
  "oklch": {
    "l": 0.55115,
    "c": 0.25335,
    "h": 279.3
  },
  "luminance": 0.1455
}

Semantic roles & 50–950 ramp

primary
#5F4AFF
secondary
#EAF2B3
accent
#E600CB
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5F4AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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