#5F5CEA#5F5CEA

#5F5CEA is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.0% C 0.208 H 278.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5F5CEA
RGBrgb(95, 92, 234)
HSLhsl(241, 77%, 64%)
HSVhsv(241, 61%, 92%)
CMYKcmyk(59.4%, 60.7%, 0%, 8.2%)
CIE-LABlab(47.01, 41.75, -71.60)
CIE-LCHlch(47.01, 82.88, 300.25°)
OKLaboklab(56.03% 0.0298 -0.2059)
OKLCHoklch(56.03% 0.208 278.2)
XYZxyz(23.3930, 16.0260, 79.6865)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CEA #E7EA5C
analogous
#5CA0EA #5F5CEA #A65CEA
triadic
#5F5CEA #EA5F5C #5CEA5F
tetradic
#5F5CEA #EA5CA0 #E7EA5C #5CEAA6
square
#5F5CEA #EA5CA0 #E7EA5C #5CEAA6
split-complementary
#5F5CEA #EAA65C #A0EA5C
monochromatic
#1B17B4 #2A26E3 #5F5CEA #9492F1 #C9C8F8

Accessibility & contrast

On white

4.99
#5F5CEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5F5CEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CEA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CEA#FFFFFF#000000##FFFFFF
##5F5CEA1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006AE7
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5cea;
/* rgb */ color: rgb(95, 92, 234);
/* oklch */ color: oklch(56.0% 0.208 278.2);
Tailwind
colors: {
  custom: {
    50: '#998af2',
    500: '#5f5cea',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cea;
$custom-light: #998af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cea",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 241.268,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56027,
    "c": 0.20807,
    "h": 278.2
  },
  "luminance": 0.16028
}

Semantic roles & 50–950 ramp

primary
#5F5CEA
secondary
#E9EAB8
accent
#D90CD5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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