#5F5CE2#5F5CE2

#5F5CE2 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.4% C 0.198 H 278.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5F5CE2
RGBrgb(95, 92, 226)
HSLhsl(241, 70%, 62%)
HSVhsv(241, 59%, 89%)
CMYKcmyk(58%, 59.3%, 0%, 11.4%)
CIE-LABlab(46.41, 39.22, -68.05)
CIE-LCHlch(46.41, 78.54, 299.96°)
OKLaboklab(55.4% 0.0301 -0.1955)
OKLCHoklch(55.4% 0.198 278.8)
XYZxyz(22.2696, 15.5766, 73.7698)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CE2 #DFE25C
analogous
#5C9CE2 #5F5CE2 #A25CE2
triadic
#5F5CE2 #E25F5C #5CE25F
tetradic
#5F5CE2 #E25C9C #DFE25C #5CE2A2
square
#5F5CE2 #E25C9C #DFE25C #5CE2A2
split-complementary
#5F5CE2 #E2A25C #9CE25C
monochromatic
#211EA6 #2C28D9 #5F5CE2 #9290EB #C5C4F4

Accessibility & contrast

On white

5.10
#5F5CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5F5CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CE2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CE2#FFFFFF#000000##FFFFFF
##5F5CE21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5ce2;
/* rgb */ color: rgb(95, 92, 226);
/* oklch */ color: oklch(55.4% 0.198 278.8);
Tailwind
colors: {
  custom: {
    50: '#988aec',
    500: '#5f5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ce2;
$custom-light: #988aec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ce2",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 241.343,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.55404,
    "c": 0.1978,
    "h": 278.8
  },
  "luminance": 0.15578
}

Semantic roles & 50–950 ramp

primary
#5F5CE2
secondary
#E4E5B4
accent
#D214CE
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #5F5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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