#5F4BD6#5F4BD6

#5F4BD6 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.7% C 0.203 H 283.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5F4BD6
RGBrgb(95, 75, 214)
HSLhsl(249, 63%, 57%)
HSVhsv(249, 65%, 84%)
CMYKcmyk(55.6%, 65%, 0%, 16.1%)
CIE-LABlab(41.72, 45.45, -68.86)
CIE-LCHlch(41.72, 82.50, 303.43°)
OKLaboklab(51.69% 0.0465 -0.1979)
OKLCHoklch(51.69% 0.203 283.2)
XYZxyz(19.3693, 12.3189, 64.9624)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BD6 #C2D64B
analogous
#4B7DD6 #5F4BD6 #A54BD6
triadic
#5F4BD6 #D65F4B #4BD65F
tetradic
#5F4BD6 #D64B7D #C2D64B #4BD6A5
square
#5F4BD6 #D64B7D #C2D64B #4BD6A5
split-complementary
#5F4BD6 #D6A54B #7DD64B
monochromatic
#2E1F88 #3F2ABA #5F4BD6 #8B7DE1 #B8AFED

Accessibility & contrast

On white

6.06
#5F4BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5F4BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BD6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BD6#FFFFFF#000000##FFFFFF
##5F4BD61.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#246E8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4bd6;
/* rgb */ color: rgb(95, 75, 214);
/* oklch */ color: oklch(51.7% 0.203 283.2);
Tailwind
colors: {
  custom: {
    50: '#977fe4',
    500: '#5f4bd6',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bd6;
$custom-light: #977fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bd6",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 214
  },
  "hsl": {
    "h": 248.633,
    "s": 62.896,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51685,
    "c": 0.20331,
    "h": 283.2
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#5F4BD6
secondary
#D3DBA2
accent
#E642CE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F4BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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