#5F5CCF#5F5CCF

#5F5CCF is a mid, vivid blue. Relative luminance 0.146; OKLCH L 54.0% C 0.173 H 280.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5F5CCF
RGBrgb(95, 92, 207)
HSLhsl(242, 55%, 59%)
HSVhsv(242, 56%, 81%)
CMYKcmyk(54.1%, 55.6%, 0%, 18.8%)
CIE-LABlab(45.07, 33.20, -59.40)
CIE-LCHlch(45.07, 68.05, 299.20°)
OKLaboklab(53.98% 0.0302 -0.17)
OKLCHoklch(53.98% 0.173 280.1)
XYZxyz(19.8054, 14.5909, 60.7921)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CCF #CCCF5C
analogous
#5C92CF #5F5CCF #985CCF
triadic
#5F5CCF #CF5F5C #5CCF5F
tetradic
#5F5CCF #CF5C92 #CCCF5C #5CCF98
square
#5F5CCF #CF5C92 #CCCF5C #5CCF98
split-complementary
#5F5CCF #CF985C #92CF5C
monochromatic
#2B2888 #3936B8 #5F5CCF #8D8BDD #BCBBEB

Accessibility & contrast

On white

5.36
#5F5CCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5F5CCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CCF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CCF#FFFFFF#000000##FFFFFF
##5F5CCF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076FD3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#2B768C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5ccf;
/* rgb */ color: rgb(95, 92, 207);
/* oklch */ color: oklch(54.0% 0.173 280.1);
Tailwind
colors: {
  custom: {
    50: '#958ade',
    500: '#5f5ccf',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ccf;
$custom-light: #958ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ccf",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 207
  },
  "hsl": {
    "h": 241.565,
    "s": 54.502,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53983,
    "c": 0.1727,
    "h": 280.1
  },
  "luminance": 0.14592
}

Semantic roles & 50–950 ramp

primary
#5F5CCF
secondary
#D9DAAD
accent
#DE4ADA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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