#6A42A2#6A42A2

#6A42A2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.3% C 0.150 H 299.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6A42A2
RGBrgb(106, 66, 162)
HSLhsl(265, 42%, 45%)
HSVhsv(265, 59%, 64%)
CMYKcmyk(34.6%, 59.3%, 0%, 36.5%)
CIE-LABlab(37.06, 37.93, -45.87)
CIE-LCHlch(37.06, 59.52, 309.59°)
OKLaboklab(47.35% 0.0748 -0.13)
OKLCHoklch(47.35% 0.15 299.9)
XYZxyz(14.4121, 9.5691, 35.2631)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42A2 #7AA242
analogous
#424AA2 #6A42A2 #9A42A2
triadic
#6A42A2 #A26A42 #42A26A
tetradic
#6A42A2 #A2424A #7AA242 #42A29A
square
#6A42A2 #A2424A #7AA242 #42A29A
split-complementary
#6A42A2 #A29A42 #4AA242
monochromatic
#311F4B #4E3077 #6A42A2 #8962BF #AA8ED1

Accessibility & contrast

On white

7.21
#6A42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6A42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A42A2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42A2#FFFFFF#000000##FFFFFF
##6A42A21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1057A5
Deuteranopia (green-blind)
#2456A0
Tritanopia (blue-blind)
#5E566B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6a42a2;
/* rgb */ color: rgb(106, 66, 162);
/* oklch */ color: oklch(47.3% 0.150 299.9);
Tailwind
colors: {
  custom: {
    50: '#9878be',
    500: '#6a42a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a42a2;
$custom-light: #9878be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42a2",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 265,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47349,
    "c": 0.14998,
    "h": 299.9
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#6A42A2
secondary
#A5BC84
accent
#D2569E
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6A42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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