#5F4CE0#5F4CE0

#5F4CE0 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.7% C 0.214 H 282.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5F4CE0
RGBrgb(95, 76, 224)
HSLhsl(248, 70%, 59%)
HSVhsv(248, 66%, 88%)
CMYKcmyk(57.6%, 66.1%, 0%, 12.2%)
CIE-LABlab(42.74, 47.91, -72.91)
CIE-LCHlch(42.74, 87.24, 303.31°)
OKLaboklab(52.67% 0.0444 -0.2098)
OKLCHoklch(52.67% 0.214 282)
XYZxyz(20.7541, 12.9822, 71.9187)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CE0 #CDE04C
analogous
#4C83E0 #5F4CE0 #A94CE0
triadic
#5F4CE0 #E05F4C #4CE05F
tetradic
#5F4CE0 #E04C83 #CDE04C #4CE0A9
square
#5F4CE0 #E04C83 #CDE04C #4CE0A9
split-complementary
#5F4CE0 #E0A94C #83E04C
monochromatic
#2A1A97 #3923CC #5F4CE0 #8E80E9 #BCB4F2

Accessibility & contrast

On white

5.84
#5F4CE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5F4CE0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CE0
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CE0#FFFFFF#000000##FFFFFF
##5F4CE01.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE5
Deuteranopia (green-blind)
#0060DD
Tritanopia (blue-blind)
#0F7290
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4ce0;
/* rgb */ color: rgb(95, 76, 224);
/* oklch */ color: oklch(52.7% 0.214 282.0);
Tailwind
colors: {
  custom: {
    50: '#997feb',
    500: '#5f4ce0',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ce0;
$custom-light: #997feb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ce0",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 224
  },
  "hsl": {
    "h": 247.703,
    "s": 70.476,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52672,
    "c": 0.21447,
    "h": 282
  },
  "luminance": 0.12984
}

Semantic roles & 50–950 ramp

primary
#5F4CE0
secondary
#DAE1A7
accent
#ED3BD6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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