#5F4CDC#5F4CDC

#5F4CDC is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.3% C 0.210 H 282.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5F4CDC
RGBrgb(95, 76, 220)
HSLhsl(248, 67%, 58%)
HSVhsv(248, 65%, 86%)
CMYKcmyk(56.8%, 65.5%, 0%, 13.7%)
CIE-LABlab(42.41, 46.70, -71.16)
CIE-LCHlch(42.41, 85.11, 303.28°)
OKLaboklab(52.34% 0.0449 -0.2047)
OKLCHoklch(52.34% 0.21 282.4)
XYZxyz(20.2180, 12.7678, 69.0953)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CDC #C9DC4C
analogous
#4C81DC #5F4CDC #A74CDC
triadic
#5F4CDC #DC5F4C #4CDC5F
tetradic
#5F4CDC #DC4C81 #C9DC4C #4CDCA7
square
#5F4CDC #DC4C81 #C9DC4C #4CDCA7
split-complementary
#5F4CDC #DCA74C #81DC4C
monochromatic
#2C1C91 #3B26C4 #5F4CDC #8D7FE6 #BBB2F0

Accessibility & contrast

On white

5.91
#5F4CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5F4CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CDC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CDC#FFFFFF#000000##FFFFFF
##5F4CDC1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#1A718D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4cdc;
/* rgb */ color: rgb(95, 76, 220);
/* oklch */ color: oklch(52.3% 0.210 282.4);
Tailwind
colors: {
  custom: {
    50: '#987fe8',
    500: '#5f4cdc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cdc;
$custom-light: #987fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cdc",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 247.917,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52336,
    "c": 0.20956,
    "h": 282.4
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

primary
#5F4CDC
secondary
#D7DFA5
accent
#EA3ED3
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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