#5F46CA#5F46CA

#5F46CA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.9% C 0.194 H 285.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5F46CA
RGBrgb(95, 70, 202)
HSLhsl(251, 55%, 53%)
HSVhsv(251, 65%, 79%)
CMYKcmyk(53%, 65.3%, 0%, 20.8%)
CIE-LABlab(39.71, 44.69, -65.21)
CIE-LCHlch(39.71, 79.05, 304.42°)
OKLaboklab(49.93% 0.0525 -0.1872)
OKLCHoklch(49.93% 0.194 285.7)
XYZxyz(17.5670, 11.0765, 57.0780)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46CA #B1CA46
analogous
#466FCA #5F46CA #A146CA
triadic
#5F46CA #CA5F46 #46CA5F
tetradic
#5F46CA #CA466F #B1CA46 #46CAA1
square
#5F46CA #CA466F #B1CA46 #46CAA1
split-complementary
#5F46CA #CAA146 #6FCA46
monochromatic
#312174 #452FA4 #5F46CA #8876D8 #B1A5E5

Accessibility & contrast

On white

6.53
#5F46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5F46CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46CA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46CA#FFFFFF#000000##FFFFFF
##5F46CA1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#336782
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f46ca;
/* rgb */ color: rgb(95, 70, 202);
/* oklch */ color: oklch(49.9% 0.194 285.7);
Tailwind
colors: {
  custom: {
    50: '#967bdb',
    500: '#5f46ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f46ca;
$custom-light: #967bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46ca",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 251.364,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49934,
    "c": 0.19445,
    "h": 285.7
  },
  "luminance": 0.11077
}

Semantic roles & 50–950 ramp

primary
#5F46CA
secondary
#C8D29A
accent
#DF49C2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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