#5F5CCD#5F5CCD

#5F5CCD is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.8% C 0.170 H 280.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5F5CCD
RGBrgb(95, 92, 205)
HSLhsl(242, 53%, 58%)
HSVhsv(242, 55%, 80%)
CMYKcmyk(53.7%, 55.1%, 0%, 19.6%)
CIE-LABlab(44.93, 32.57, -58.47)
CIE-LCHlch(44.93, 66.93, 299.12°)
OKLaboklab(53.84% 0.0302 -0.1673)
OKLCHoklch(53.84% 0.17 280.2)
XYZxyz(19.5625, 14.4938, 59.5125)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CCD #CACD5C
analogous
#5C91CD #5F5CCD #975CCD
triadic
#5F5CCD #CD5F5C #5CCD5F
tetradic
#5F5CCD #CD5C91 #CACD5C #5CCD97
square
#5F5CCD #CD5C91 #CACD5C #5CCD97
split-complementary
#5F5CCD #CD975C #91CD5C
monochromatic
#2B2986 #3B37B4 #5F5CCD #8D8BDB #BBBAEA

Accessibility & contrast

On white

5.39
#5F5CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5F5CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CCD
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CCD#FFFFFF#000000##FFFFFF
##5F5CCD1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106FD1
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#2D768B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f5ccd;
/* rgb */ color: rgb(95, 92, 205);
/* oklch */ color: oklch(53.8% 0.170 280.2);
Tailwind
colors: {
  custom: {
    50: '#958add',
    500: '#5f5ccd',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ccd;
$custom-light: #958add;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ccd",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 205
  },
  "hsl": {
    "h": 241.593,
    "s": 53.052,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.17001,
    "h": 280.2
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#5F5CCD
secondary
#D8D9AC
accent
#DC4BD9
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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