#5F5CDC#5F5CDC

#5F5CDC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.190 H 279.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5F5CDC
RGBrgb(95, 92, 220)
HSLhsl(241, 65%, 61%)
HSVhsv(241, 58%, 86%)
CMYKcmyk(56.8%, 58.2%, 0%, 13.7%)
CIE-LABlab(45.98, 37.32, -65.35)
CIE-LCHlch(45.98, 75.25, 299.73°)
OKLaboklab(54.95% 0.0302 -0.1876)
OKLCHoklch(54.95% 0.19 279.2)
XYZxyz(21.4606, 15.2530, 69.5095)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CDC #D9DC5C
analogous
#5C99DC #5F5CDC #9F5CDC
triadic
#5F5CDC #DC5F5C #5CDC5F
tetradic
#5F5CDC #DC5C99 #D9DC5C #5CDC9F
square
#5F5CDC #DC5C99 #D9DC5C #5CDC9F
split-complementary
#5F5CDC #DC9F5C #99DC5C
monochromatic
#24229C #302CCE #5F5CDC #908EE7 #C2C1F2

Accessibility & contrast

On white

5.18
#5F5CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5F5CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CDC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CDC#FFFFFF#000000##FFFFFF
##5F5CDC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#157A93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f5cdc;
/* rgb */ color: rgb(95, 92, 220);
/* oklch */ color: oklch(54.9% 0.190 279.2);
Tailwind
colors: {
  custom: {
    50: '#978ae8',
    500: '#5f5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cdc;
$custom-light: #978ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cdc",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 241.406,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.18998,
    "h": 279.2
  },
  "luminance": 0.15254
}

Semantic roles & 50–950 ramp

primary
#5F5CDC
secondary
#E1E2B2
accent
#CC19C8
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5F5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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