#5F4CDE#5F4CDE

#5F4CDE is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.5% C 0.212 H 282.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5F4CDE
RGBrgb(95, 76, 222)
HSLhsl(248, 69%, 58%)
HSVhsv(248, 66%, 87%)
CMYKcmyk(57.2%, 65.8%, 0%, 12.9%)
CIE-LABlab(42.57, 47.31, -72.03)
CIE-LCHlch(42.57, 86.18, 303.29°)
OKLaboklab(52.5% 0.0447 -0.2073)
OKLCHoklch(52.5% 0.212 282.2)
XYZxyz(20.4845, 12.8744, 70.4987)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CDE #CBDE4C
analogous
#4C82DE #5F4CDE #A84CDE
triadic
#5F4CDE #DE5F4C #4CDE5F
tetradic
#5F4CDE #DE4C82 #CBDE4C #4CDEA8
square
#5F4CDE #DE4C82 #CBDE4C #4CDEA8
split-complementary
#5F4CDE #DEA84C #82DE4C
monochromatic
#2B1B94 #3A25C8 #5F4CDE #8D80E8 #BBB3F1

Accessibility & contrast

On white

5.87
#5F4CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5F4CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CDE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CDE#FFFFFF#000000##FFFFFF
##5F4CDE1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E3
Deuteranopia (green-blind)
#005FDB
Tritanopia (blue-blind)
#15718E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4cde;
/* rgb */ color: rgb(95, 76, 222);
/* oklch */ color: oklch(52.5% 0.212 282.2);
Tailwind
colors: {
  custom: {
    50: '#987fe9',
    500: '#5f4cde',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cde;
$custom-light: #987fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cde",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 247.808,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52504,
    "c": 0.21202,
    "h": 282.2
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

primary
#5F4CDE
secondary
#D8E0A6
accent
#EC3CD5
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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