#5F42CA#5F42CA

#5F42CA is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.199 H 286.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5F42CA
RGBrgb(95, 66, 202)
HSLhsl(253, 56%, 53%)
HSVhsv(253, 67%, 79%)
CMYKcmyk(53%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.89, 46.92, -66.56)
CIE-LCHlch(38.89, 81.43, 305.18°)
OKLaboklab(49.34% 0.0562 -0.1912)
OKLCHoklch(49.34% 0.199 286.4)
XYZxyz(17.3250, 10.5927, 56.9974)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F42CA #ADCA42
analogous
#4269CA #5F42CA #A342CA
triadic
#5F42CA #CA5F42 #42CA5F
tetradic
#5F42CA #CA4269 #ADCA42 #42CAA3
square
#5F42CA #CA4269 #ADCA42 #42CAA3
split-complementary
#5F42CA #CAA342 #69CA42
monochromatic
#312072 #462DA2 #5F42CA #8772D7 #B0A2E5

Accessibility & contrast

On white

6.73
#5F42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F42CA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F42CA#FFFFFF#000000##FFFFFF
##5F42CA1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#346581
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f42ca;
/* rgb */ color: rgb(95, 66, 202);
/* oklch */ color: oklch(49.3% 0.199 286.4);
Tailwind
colors: {
  custom: {
    50: '#9678db',
    500: '#5f42ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f42ca;
$custom-light: #9678db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f42ca",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 252.794,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49341,
    "c": 0.19926,
    "h": 286.4
  },
  "luminance": 0.10594
}

Semantic roles & 50–950 ramp

primary
#5F42CA
secondary
#C5D196
accent
#DF48BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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