#6A42B2#6A42B2

#6A42B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.5% C 0.170 H 295.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6A42B2
RGBrgb(106, 66, 178)
HSLhsl(261, 46%, 48%)
HSVhsv(261, 63%, 70%)
CMYKcmyk(40.4%, 62.9%, 0%, 30.2%)
CIE-LABlab(38.15, 42.23, -53.63)
CIE-LCHlch(38.15, 68.26, 308.21°)
OKLaboklab(48.5% 0.0741 -0.1528)
OKLCHoklch(48.5% 0.17 295.9)
XYZxyz(15.9259, 10.1746, 43.2357)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42B2 #8AB242
analogous
#4252B2 #6A42B2 #A242B2
triadic
#6A42B2 #B26A42 #42B26A
tetradic
#6A42B2 #B24252 #8AB242 #42B2A2
square
#6A42B2 #B24252 #8AB242 #42B2A2
split-complementary
#6A42B2 #B2A242 #52B242
monochromatic
#352159 #4F3185 #6A42B2 #8B6AC8 #AE96D8

Accessibility & contrast

On white

6.92
#6A42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6A42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42B2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42B2#FFFFFF#000000##FFFFFF
##6A42B21.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#585B74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6a42b2;
/* rgb */ color: rgb(106, 66, 178);
/* oklch */ color: oklch(48.5% 0.170 295.9);
Tailwind
colors: {
  custom: {
    50: '#9a78ca',
    500: '#6a42b2',
    950: '#000000',
  },
}
SCSS
$custom: #6a42b2;
$custom-light: #9a78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42b2",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 261.429,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48498,
    "c": 0.16985,
    "h": 295.9
  },
  "luminance": 0.10175
}

Semantic roles & 50–950 ramp

primary
#6A42B2
secondary
#B0C48C
accent
#D652A7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6A42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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