#5F4DCD#5F4DCD

#5F4DCD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.3% C 0.190 H 283.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5F4DCD
RGBrgb(95, 77, 205)
HSLhsl(248, 56%, 55%)
HSVhsv(248, 62%, 80%)
CMYKcmyk(53.7%, 62.4%, 0%, 19.6%)
CIE-LABlab(41.45, 41.56, -64.11)
CIE-LCHlch(41.45, 76.41, 302.95°)
OKLaboklab(51.27% 0.0455 -0.184)
OKLCHoklch(51.27% 0.19 283.9)
XYZxyz(18.3893, 12.1474, 59.1215)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DCD #BBCD4D
analogous
#4D7BCD #5F4DCD #9F4DCD
triadic
#5F4DCD #CD5F4D #4DCD5F
tetradic
#5F4DCD #CD4D7B #BBCD4D #4DCD9F
square
#5F4DCD #CD4D7B #BBCD4D #4DCD9F
split-complementary
#5F4DCD #CD9F4D #7BCD4D
monochromatic
#30237D #4230AC #5F4DCD #8A7DDA #B5ADE8

Accessibility & contrast

On white

6.12
#5F4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F4DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DCD
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DCD#FFFFFF#000000##FFFFFF
##5F4DCD1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#2F6C86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4dcd;
/* rgb */ color: rgb(95, 77, 205);
/* oklch */ color: oklch(51.3% 0.190 283.9);
Tailwind
colors: {
  custom: {
    50: '#9680dd',
    500: '#5f4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dcd;
$custom-light: #9680dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dcd",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 248.438,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51271,
    "c": 0.18953,
    "h": 283.9
  },
  "luminance": 0.12148
}

Semantic roles & 50–950 ramp

primary
#5F4DCD
secondary
#CED6A0
accent
#DF48CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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