#5F4CD7#5F4CD7

#5F4CD7 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.9% C 0.203 H 282.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD7
RGBrgb(95, 76, 215)
HSLhsl(248, 63%, 57%)
HSVhsv(248, 65%, 84%)
CMYKcmyk(55.8%, 64.7%, 0%, 15.7%)
CIE-LABlab(42.01, 45.18, -68.95)
CIE-LCHlch(42.01, 82.44, 303.23°)
OKLaboklab(51.92% 0.0455 -0.1982)
OKLCHoklch(51.92% 0.203 282.9)
XYZxyz(19.5657, 12.5069, 65.6599)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD7 #C4D74C
analogous
#4C7FD7 #5F4CD7 #A44CD7
triadic
#5F4CD7 #D75F4C #4CD75F
tetradic
#5F4CD7 #D74C7F #C4D74C #4CD7A4
square
#5F4CD7 #D74C7F #C4D74C #4CD7A4
split-complementary
#5F4CD7 #D7A44C #7FD74C
monochromatic
#2D1F8A #3E2ABC #5F4CD7 #8C7EE2 #B8B0ED

Accessibility & contrast

On white

6.00
#5F4CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5F4CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD7#FFFFFF#000000##FFFFFF
##5F4CD71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f4cd7;
/* rgb */ color: rgb(95, 76, 215);
/* oklch */ color: oklch(51.9% 0.203 282.9);
Tailwind
colors: {
  custom: {
    50: '#977fe4',
    500: '#5f4cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd7;
$custom-light: #977fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd7",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 248.201,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51922,
    "c": 0.20336,
    "h": 282.9
  },
  "luminance": 0.12508
}

Semantic roles & 50–950 ramp

primary
#5F4CD7
secondary
#D4DCA3
accent
#E641D0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F4CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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