#5F4CD2#5F4CD2

#5F4CD2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.5% C 0.197 H 283.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD2
RGBrgb(95, 76, 210)
HSLhsl(249, 60%, 56%)
HSVhsv(249, 64%, 82%)
CMYKcmyk(54.8%, 63.8%, 0%, 17.6%)
CIE-LABlab(41.62, 43.66, -66.72)
CIE-LCHlch(41.62, 79.74, 303.20°)
OKLaboklab(51.51% 0.046 -0.1917)
OKLCHoklch(51.51% 0.197 283.5)
XYZxyz(18.9331, 12.2538, 62.3278)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD2 #BFD24C
analogous
#4C7CD2 #5F4CD2 #A24CD2
triadic
#5F4CD2 #D25F4C #4CD25F
tetradic
#5F4CD2 #D24C7C #BFD24C #4CD2A2
square
#5F4CD2 #D24C7C #BFD24C #4CD2A2
split-complementary
#5F4CD2 #D2A24C #7CD24C
monochromatic
#2F2183 #402DB4 #5F4CD2 #8B7DDE #B6AEEB

Accessibility & contrast

On white

6.09
#5F4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5F4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD2#FFFFFF#000000##FFFFFF
##5F4CD21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#2A6D88
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4cd2;
/* rgb */ color: rgb(95, 76, 210);
/* oklch */ color: oklch(51.5% 0.197 283.5);
Tailwind
colors: {
  custom: {
    50: '#977fe1',
    500: '#5f4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd2;
$custom-light: #977fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd2",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 248.507,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51513,
    "c": 0.19711,
    "h": 283.5
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#5F4CD2
secondary
#D1D9A1
accent
#E345CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #5F4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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