#5F46CD#5F46CD

#5F46CD is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.198 H 285.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5F46CD
RGBrgb(95, 70, 205)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(53.7%, 65.9%, 0%, 19.6%)
CIE-LABlab(39.95, 45.58, -66.56)
CIE-LCHlch(39.95, 80.67, 304.40°)
OKLaboklab(50.18% 0.0521 -0.1912)
OKLCHoklch(50.18% 0.198 285.2)
XYZxyz(17.9256, 11.2200, 58.9669)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46CD #B4CD46
analogous
#4671CD #5F46CD #A346CD
triadic
#5F46CD #CD5F46 #46CD5F
tetradic
#5F46CD #CD4671 #B4CD46 #46CDA3
square
#5F46CD #CD4671 #B4CD46 #46CDA3
split-complementary
#5F46CD #CDA346 #71CD46
monochromatic
#312078 #442DA8 #5F46CD #8976DA #B2A6E7

Accessibility & contrast

On white

6.47
#5F46CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F46CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46CD
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46CD#FFFFFF#000000##FFFFFF
##5F46CD1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#306883
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f46cd;
/* rgb */ color: rgb(95, 70, 205);
/* oklch */ color: oklch(50.2% 0.198 285.2);
Tailwind
colors: {
  custom: {
    50: '#967bdd',
    500: '#5f46cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f46cd;
$custom-light: #967bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46cd",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 251.111,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50182,
    "c": 0.19816,
    "h": 285.2
  },
  "luminance": 0.11221
}

Semantic roles & 50–950 ramp

primary
#5F46CD
secondary
#CAD49B
accent
#E147C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F46CD

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

Preview Lab → · Contrast checker → · Palette generator →

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