#5F54CE#5F54CE

#5F54CE is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.5% C 0.182 H 282.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5F54CE
RGBrgb(95, 84, 206)
HSLhsl(245, 55%, 57%)
HSVhsv(245, 59%, 81%)
CMYKcmyk(53.9%, 59.2%, 0%, 19.2%)
CIE-LABlab(43.11, 37.73, -62.00)
CIE-LCHlch(43.11, 72.57, 301.32°)
OKLaboklab(52.51% 0.0385 -0.1777)
OKLCHoklch(52.51% 0.182 282.2)
XYZxyz(19.0268, 13.2286, 59.9313)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54CE #C3CE54
analogous
#5486CE #5F54CE #9C54CE
triadic
#5F54CE #CE5F54 #54CE5F
tetradic
#5F54CE #CE5486 #C3CE54 #54CE9C
square
#5F54CE #CE5486 #C3CE54 #54CE9C
split-complementary
#5F54CE #CE9C54 #86CE54
monochromatic
#2E2582 #3E33B2 #5F54CE #8C84DC #B8B3E9

Accessibility & contrast

On white

5.76
#5F54CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5F54CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54CE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54CE#FFFFFF#000000##FFFFFF
##5F54CE1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#2D7189
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f54ce;
/* rgb */ color: rgb(95, 84, 206);
/* oklch */ color: oklch(52.5% 0.182 282.2);
Tailwind
colors: {
  custom: {
    50: '#9584de',
    500: '#5f54ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f54ce;
$custom-light: #9584de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54ce",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 245.41,
    "s": 55.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52508,
    "c": 0.18186,
    "h": 282.2
  },
  "luminance": 0.1323
}

Semantic roles & 50–950 ramp

primary
#5F54CE
secondary
#D3D8A6
accent
#DF49D1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F54CE

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

Preview Lab → · Contrast checker → · Palette generator →

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