#5F5CE7#5F5CE7

#5F5CE7 is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 55.8% C 0.204 H 278.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5F5CE7
RGBrgb(95, 92, 231)
HSLhsl(241, 74%, 63%)
HSVhsv(241, 60%, 91%)
CMYKcmyk(58.9%, 60.2%, 0%, 9.4%)
CIE-LABlab(46.78, 40.80, -70.27)
CIE-LCHlch(46.78, 81.26, 300.14°)
OKLaboklab(55.79% 0.0299 -0.202)
OKLCHoklch(55.79% 0.204 278.4)
XYZxyz(22.9657, 15.8550, 77.4359)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CE7 #E4E75C
analogous
#5C9EE7 #5F5CE7 #A45CE7
triadic
#5F5CE7 #E75F5C #5CE75F
tetradic
#5F5CE7 #E75C9E #E4E75C #5CE7A4
square
#5F5CE7 #E75C9E #E4E75C #5CE7A4
split-complementary
#5F5CE7 #E7A45C #9EE75C
monochromatic
#1D1AAF #2B27DF #5F5CE7 #9391EF #C8C7F7

Accessibility & contrast

On white

5.03
#5F5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5F5CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CE7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CE7#FFFFFF#000000##FFFFFF
##5F5CE71.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#0069E4
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5ce7;
/* rgb */ color: rgb(95, 92, 231);
/* oklch */ color: oklch(55.8% 0.204 278.4);
Tailwind
colors: {
  custom: {
    50: '#998af0',
    500: '#5f5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ce7;
$custom-light: #998af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ce7",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 241.295,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55792,
    "c": 0.20425,
    "h": 278.4
  },
  "luminance": 0.15857
}

Semantic roles & 50–950 ramp

primary
#5F5CE7
secondary
#E7E8B7
accent
#D60FD2
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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