#5F4CD5#5F4CD5

#5F4CD5 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.8% C 0.201 H 283.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD5
RGBrgb(95, 76, 213)
HSLhsl(248, 62%, 57%)
HSVhsv(248, 64%, 84%)
CMYKcmyk(55.4%, 64.3%, 0%, 16.5%)
CIE-LABlab(41.85, 44.57, -68.06)
CIE-LCHlch(41.85, 81.36, 303.22°)
OKLaboklab(51.76% 0.0457 -0.1956)
OKLCHoklch(51.76% 0.201 283.1)
XYZxyz(19.3103, 12.4047, 64.3147)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD5 #C2D54C
analogous
#4C7ED5 #5F4CD5 #A44CD5
triadic
#5F4CD5 #D55F4C #4CD55F
tetradic
#5F4CD5 #D54C7E #C2D54C #4CD5A4
square
#5F4CD5 #D54C7E #C2D54C #4CD5A4
split-complementary
#5F4CD5 #D5A44C #7ED54C
monochromatic
#2E2087 #3F2BB9 #5F4CD5 #8B7EE1 #B8AFEC

Accessibility & contrast

On white

6.03
#5F4CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F4CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD5#FFFFFF#000000##FFFFFF
##5F4CD51.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#266E8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4cd5;
/* rgb */ color: rgb(95, 76, 213);
/* oklch */ color: oklch(51.8% 0.201 283.1);
Tailwind
colors: {
  custom: {
    50: '#977fe3',
    500: '#5f4cd5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd5;
$custom-light: #977fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd5",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 248.321,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51758,
    "c": 0.20086,
    "h": 283.1
  },
  "luminance": 0.12406
}

Semantic roles & 50–950 ramp

primary
#5F4CD5
secondary
#D3DAA2
accent
#E543CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F4CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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