#5F41CD#5F41CD

#5F41CD is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.5% C 0.204 H 286.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5F41CD
RGBrgb(95, 65, 205)
HSLhsl(253, 58%, 53%)
HSVhsv(253, 68%, 80%)
CMYKcmyk(53.7%, 68.3%, 0%, 19.6%)
CIE-LABlab(38.93, 48.35, -68.22)
CIE-LCHlch(38.93, 83.61, 305.33°)
OKLaboklab(49.45% 0.0566 -0.196)
OKLCHoklch(49.45% 0.204 286.1)
XYZxyz(17.6258, 10.6203, 58.8669)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41CD #AFCD41
analogous
#4169CD #5F41CD #A541CD
triadic
#5F41CD #CD5F41 #41CD5F
tetradic
#5F41CD #CD4169 #AFCD41 #41CDA5
square
#5F41CD #CD4169 #AFCD41 #41CDA5
split-complementary
#5F41CD #CDA541 #69CD41
monochromatic
#311F75 #462CA5 #5F41CD #8871DA #B1A2E6

Accessibility & contrast

On white

6.72
#5F41CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5F41CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41CD
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41CD#FFFFFF#000000##FFFFFF
##5F41CD1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#316582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f41cd;
/* rgb */ color: rgb(95, 65, 205);
/* oklch */ color: oklch(49.5% 0.204 286.1);
Tailwind
colors: {
  custom: {
    50: '#9778dd',
    500: '#5f41cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f41cd;
$custom-light: #9778dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41cd",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 252.857,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49452,
    "c": 0.20406,
    "h": 286.1
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#5F41CD
secondary
#C6D397
accent
#E246C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F41CD

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

Preview Lab → · Contrast checker → · Palette generator →

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