#5F46CC#5F46CC

#5F46CC is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.197 H 285.4°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5F46CC
RGBrgb(95, 70, 204)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(53.4%, 65.7%, 0%, 20%)
CIE-LABlab(39.87, 45.28, -66.11)
CIE-LCHlch(39.87, 80.13, 304.41°)
OKLaboklab(50.1% 0.0522 -0.1899)
OKLCHoklch(50.1% 0.197 285.4)
XYZxyz(17.8053, 11.1719, 58.3332)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46CC #B3CC46
analogous
#4670CC #5F46CC #A246CC
triadic
#5F46CC #CC5F46 #46CC5F
tetradic
#5F46CC #CC4670 #B3CC46 #46CCA2
square
#5F46CC #CC4670 #B3CC46 #46CCA2
split-complementary
#5F46CC #CCA246 #70CC46
monochromatic
#312177 #452EA7 #5F46CC #8876D9 #B2A6E6

Accessibility & contrast

On white

6.49
#5F46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5F46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46CC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46CC#FFFFFF#000000##FFFFFF
##5F46CC1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#316883
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f46cc;
/* rgb */ color: rgb(95, 70, 204);
/* oklch */ color: oklch(50.1% 0.197 285.4);
Tailwind
colors: {
  custom: {
    50: '#967bdd',
    500: '#5f46cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f46cc;
$custom-light: #967bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46cc",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 251.194,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50099,
    "c": 0.19693,
    "h": 285.4
  },
  "luminance": 0.11173
}

Semantic roles & 50–950 ramp

primary
#5F46CC
secondary
#C9D49A
accent
#E048C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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