#5F5CC7#5F5CC7

#5F5CC7 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.4% C 0.162 H 280.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5F5CC7
RGBrgb(95, 92, 199)
HSLhsl(242, 49%, 57%)
HSVhsv(242, 54%, 78%)
CMYKcmyk(52.3%, 53.8%, 0%, 22%)
CIE-LABlab(44.53, 30.68, -55.66)
CIE-LCHlch(44.53, 63.55, 298.86°)
OKLaboklab(53.41% 0.03 -0.159)
OKLCHoklch(53.41% 0.162 280.7)
XYZxyz(18.8521, 14.2096, 55.7711)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CC7 #C4C75C
analogous
#5C8FC7 #5F5CC7 #945CC7
triadic
#5F5CC7 #C75F5C #5CC75F
tetradic
#5F5CC7 #C75C8F #C4C75C #5CC794
square
#5F5CC7 #C75C8F #C4C75C #5CC794
split-complementary
#5F5CC7 #C7945C #8FC75C
monochromatic
#2D2B7D #3E3BAB #5F5CC7 #8C8AD7 #B8B7E6

Accessibility & contrast

On white

5.47
#5F5CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5F5CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CC7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CC7#FFFFFF#000000##FFFFFF
##5F5CC71.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6DCB
Deuteranopia (green-blind)
#0D65C5
Tritanopia (blue-blind)
#337488
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f5cc7;
/* rgb */ color: rgb(95, 92, 199);
/* oklch */ color: oklch(53.4% 0.162 280.7);
Tailwind
colors: {
  custom: {
    50: '#948ad9',
    500: '#5f5cc7',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cc7;
$custom-light: #948ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cc7",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 241.682,
    "s": 48.858,
    "l": 57.059
  },
  "oklch": {
    "l": 0.53412,
    "c": 0.16184,
    "h": 280.7
  },
  "luminance": 0.14211
}

Semantic roles & 50–950 ramp

primary
#5F5CC7
secondary
#D4D5AA
accent
#D84FD5
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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