#5F4ACA#5F4ACA

#5F4ACA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.6% C 0.189 H 284.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5F4ACA
RGBrgb(95, 74, 202)
HSLhsl(250, 55%, 54%)
HSVhsv(250, 63%, 79%)
CMYKcmyk(53%, 63.4%, 0%, 20.8%)
CIE-LABlab(40.56, 42.40, -63.82)
CIE-LCHlch(40.56, 76.62, 303.60°)
OKLaboklab(50.55% 0.0486 -0.1831)
OKLCHoklch(50.55% 0.189 284.9)
XYZxyz(17.8256, 11.5938, 57.1642)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ACA #B5CA4A
analogous
#4A75CA #5F4ACA #9F4ACA
triadic
#5F4ACA #CA5F4A #4ACA5F
tetradic
#5F4ACA #CA4A75 #B5CA4A #4ACA9F
square
#5F4ACA #CA4A75 #B5CA4A #4ACA9F
split-complementary
#5F4ACA #CA9F4A #75CA4A
monochromatic
#312377 #4431A6 #5F4ACA #8979D8 #B3A9E6

Accessibility & contrast

On white

6.33
#5F4ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5F4ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ACA
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ACA#FFFFFF#000000##FFFFFF
##5F4ACA1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#336983
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f4aca;
/* rgb */ color: rgb(95, 74, 202);
/* oklch */ color: oklch(50.6% 0.189 284.9);
Tailwind
colors: {
  custom: {
    50: '#967edb',
    500: '#5f4aca',
    950: '#000000',
  },
}
SCSS
$custom: #5f4aca;
$custom-light: #967edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4aca",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 202
  },
  "hsl": {
    "h": 249.844,
    "s": 54.701,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.18949,
    "h": 284.9
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

primary
#5F4ACA
secondary
#CAD39D
accent
#DE4AC6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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