#6A42CE#6A42CE

#6A42CE is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.204 H 290.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6A42CE
RGBrgb(106, 66, 206)
HSLhsl(257, 59%, 53%)
HSVhsv(257, 68%, 81%)
CMYKcmyk(48.5%, 68%, 0%, 19.2%)
CIE-LABlab(40.27, 49.95, -66.56)
CIE-LCHlch(40.27, 83.22, 306.88°)
OKLaboklab(50.69% 0.0708 -0.1908)
OKLCHoklch(50.69% 0.204 290.4)
XYZxyz(19.0295, 11.4161, 59.5814)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42CE #A6CE42
analogous
#4260CE #6A42CE #B042CE
triadic
#6A42CE #CE6A42 #42CE6A
tetradic
#6A42CE #CE4260 #A6CE42 #42CEB0
square
#6A42CE #CE4260 #A6CE42 #42CEB0
split-complementary
#6A42CE #CEB042 #60CE42
monochromatic
#381F77 #4F2BA7 #6A42CE #9073DB #B7A3E7

Accessibility & contrast

On white

6.40
#6A42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6A42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42CE
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42CE#FFFFFF#000000##FFFFFF
##6A42CE1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#496583
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6a42ce;
/* rgb */ color: rgb(106, 66, 206);
/* oklch */ color: oklch(50.7% 0.204 290.4);
Tailwind
colors: {
  custom: {
    50: '#9d79de',
    500: '#6a42ce',
    950: '#000000',
  },
}
SCSS
$custom: #6a42ce;
$custom-light: #9d79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42ce",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 257.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5069,
    "c": 0.20356,
    "h": 290.4
  },
  "luminance": 0.11417
}

Semantic roles & 50–950 ramp

primary
#6A42CE
secondary
#C3D498
accent
#E246B5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A42CE

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

Preview Lab → · Contrast checker → · Palette generator →

#6A42CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva