#5F41CB#5F41CB

#5F41CB is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.202 H 286.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5F41CB
RGBrgb(95, 65, 203)
HSLhsl(253, 57%, 53%)
HSVhsv(253, 68%, 80%)
CMYKcmyk(53.2%, 68%, 0%, 20.4%)
CIE-LABlab(38.77, 47.76, -67.33)
CIE-LCHlch(38.77, 82.55, 305.35°)
OKLaboklab(49.28% 0.0569 -0.1934)
OKLCHoklch(49.28% 0.202 286.4)
XYZxyz(17.3859, 10.5244, 57.6036)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41CB #ADCB41
analogous
#4168CB #5F41CB #A441CB
triadic
#5F41CB #CB5F41 #41CB5F
tetradic
#5F41CB #CB4168 #ADCB41 #41CBA4
square
#5F41CB #CB4168 #ADCB41 #41CBA4
split-complementary
#5F41CB #CBA441 #68CB41
monochromatic
#311F72 #462CA2 #5F41CB #8771D8 #B0A1E5

Accessibility & contrast

On white

6.76
#5F41CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F41CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41CB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41CB#FFFFFF#000000##FFFFFF
##5F41CB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#336481
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f41cb;
/* rgb */ color: rgb(95, 65, 203);
/* oklch */ color: oklch(49.3% 0.202 286.4);
Tailwind
colors: {
  custom: {
    50: '#9678dc',
    500: '#5f41cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f41cb;
$custom-light: #9678dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41cb",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 253.043,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49281,
    "c": 0.20165,
    "h": 286.4
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#5F41CB
secondary
#C5D296
accent
#E048BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F41CB

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

Preview Lab → · Contrast checker → · Palette generator →

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