#6042CA#6042CA

#6042CA is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.199 H 286.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#6042CA
RGBrgb(96, 66, 202)
HSLhsl(253, 56%, 53%)
HSVhsv(253, 67%, 79%)
CMYKcmyk(52.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.98, 47.09, -66.40)
CIE-LCHlch(38.98, 81.40, 305.34°)
OKLaboklab(49.43% 0.0576 -0.1907)
OKLCHoklch(49.43% 0.199 286.8)
XYZxyz(17.4296, 10.6466, 57.0023)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042CA #ACCA42
analogous
#4268CA #6042CA #A442CA
triadic
#6042CA #CA6042 #42CA60
tetradic
#6042CA #CA4268 #ACCA42 #42CAA4
square
#6042CA #CA4268 #ACCA42 #42CAA4
split-complementary
#6042CA #CAA442 #68CA42
monochromatic
#322072 #472DA2 #6042CA #8872D7 #B0A2E5

Accessibility & contrast

On white

6.71
#6042CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6042CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042CA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042CA#FFFFFF#000000##FFFFFF
##6042CA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6042ca;
/* rgb */ color: rgb(96, 66, 202);
/* oklch */ color: oklch(49.4% 0.199 286.8);
Tailwind
colors: {
  custom: {
    50: '#9778db',
    500: '#6042ca',
    950: '#000000',
  },
}
SCSS
$custom: #6042ca;
$custom-light: #9778db;
$custom-dark: #000000;
JSON
{
  "hex": "#6042ca",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 253.235,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4943,
    "c": 0.19919,
    "h": 286.8
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#6042CA
secondary
#C4D196
accent
#DF48BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6042CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6042CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva