#6A42D2#6A42D2

#6A42D2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.208 H 289.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#6A42D2
RGBrgb(106, 66, 210)
HSLhsl(257, 62%, 54%)
HSVhsv(257, 69%, 82%)
CMYKcmyk(49.5%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.59, 51.06, -68.35)
CIE-LCHlch(40.59, 85.32, 306.76°)
OKLaboklab(51.02% 0.0701 -0.1961)
OKLCHoklch(51.02% 0.208 289.7)
XYZxyz(19.5216, 11.6129, 62.1732)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42D2 #AAD242
analogous
#4262D2 #6A42D2 #B242D2
triadic
#6A42D2 #D26A42 #42D26A
tetradic
#6A42D2 #D24262 #AAD242 #42D2B2
square
#6A42D2 #D24262 #AAD242 #42D2B2
split-complementary
#6A42D2 #D2B242 #62D242
monochromatic
#381E7C #4E29AD #6A42D2 #9173DE #B8A5EA

Accessibility & contrast

On white

6.32
#6A42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6A42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42D2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42D2#FFFFFF#000000##FFFFFF
##6A42D21.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#466785
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6a42d2;
/* rgb */ color: rgb(106, 66, 210);
/* oklch */ color: oklch(51.0% 0.208 289.7);
Tailwind
colors: {
  custom: {
    50: '#9e79e1',
    500: '#6a42d2',
    950: '#000000',
  },
}
SCSS
$custom: #6a42d2;
$custom-light: #9e79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42d2",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 256.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5102,
    "c": 0.20826,
    "h": 289.7
  },
  "luminance": 0.11614
}

Semantic roles & 50–950 ramp

primary
#6A42D2
secondary
#C6D799
accent
#E543B8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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