#5F4BD7#5F4BD7

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

Color values

HEX#5F4BD7
RGBrgb(95, 75, 215)
HSLhsl(249, 64%, 57%)
HSVhsv(249, 65%, 84%)
CMYKcmyk(55.8%, 65.1%, 0%, 15.7%)
CIE-LABlab(41.80, 45.75, -69.30)
CIE-LCHlch(41.80, 83.04, 303.43°)
OKLaboklab(51.77% 0.0464 -0.1992)
OKLCHoklch(51.77% 0.205 283.1)
XYZxyz(19.4974, 12.3701, 65.6371)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BD7 #C3D74B
analogous
#4B7DD7 #5F4BD7 #A54BD7
triadic
#5F4BD7 #D75F4B #4BD75F
tetradic
#5F4BD7 #D74B7D #C3D74B #4BD7A5
square
#5F4BD7 #D74B7D #C3D74B #4BD7A5
split-complementary
#5F4BD7 #D7A54B #7DD74B
monochromatic
#2E1E89 #3E2ABB #5F4BD7 #8C7DE2 #B8AFED

Accessibility & contrast

On white

6.04
#5F4BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5F4BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BD7
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BD7#FFFFFF#000000##FFFFFF
##5F4BD71.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#236E8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4bd7;
/* rgb */ color: rgb(95, 75, 215);
/* oklch */ color: oklch(51.8% 0.205 283.1);
Tailwind
colors: {
  custom: {
    50: '#977fe4',
    500: '#5f4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bd7;
$custom-light: #977fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bd7",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 248.571,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.20456,
    "h": 283.1
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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