#5F56CE#5F56CE

#5F56CE is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.9% C 0.179 H 281.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5F56CE
RGBrgb(95, 86, 206)
HSLhsl(245, 55%, 57%)
HSVhsv(245, 58%, 81%)
CMYKcmyk(53.9%, 58.3%, 0%, 19.2%)
CIE-LABlab(43.57, 36.52, -61.24)
CIE-LCHlch(43.57, 71.31, 300.81°)
OKLaboklab(52.85% 0.0364 -0.1755)
OKLCHoklch(52.85% 0.179 281.7)
XYZxyz(19.1842, 13.5436, 59.9838)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56CE #C5CE56
analogous
#5689CE #5F56CE #9B56CE
triadic
#5F56CE #CE5F56 #56CE5F
tetradic
#5F56CE #CE5689 #C5CE56 #56CE9B
square
#5F56CE #CE5689 #C5CE56 #56CE9B
split-complementary
#5F56CE #CE9B56 #89CE56
monochromatic
#2D2683 #3D34B3 #5F56CE #8C85DC #B9B5EA

Accessibility & contrast

On white

5.66
#5F56CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5F56CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56CE
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56CE#FFFFFF#000000##FFFFFF
##5F56CE1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#2D728A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f56ce;
/* rgb */ color: rgb(95, 86, 206);
/* oklch */ color: oklch(52.9% 0.179 281.7);
Tailwind
colors: {
  custom: {
    50: '#9586de',
    500: '#5f56ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f56ce;
$custom-light: #9586de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56ce",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 244.5,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52851,
    "c": 0.17926,
    "h": 281.7
  },
  "luminance": 0.13545
}

Semantic roles & 50–950 ramp

primary
#5F56CE
secondary
#D5D8A8
accent
#DE49D3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F56CE

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

Preview Lab → · Contrast checker → · Palette generator →

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