#6A42DB#6A42DB

#6A42DB is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.219 H 288.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#6A42DB
RGBrgb(106, 66, 219)
HSLhsl(256, 68%, 56%)
HSVhsv(256, 70%, 86%)
CMYKcmyk(51.6%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.33, 53.57, -72.31)
CIE-LCHlch(41.33, 89.99, 306.54°)
OKLaboklab(51.78% 0.0685 -0.2077)
OKLCHoklch(51.78% 0.219 288.3)
XYZxyz(20.6745, 12.0741, 68.2453)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42DB #B3DB42
analogous
#4266DB #6A42DB #B642DB
triadic
#6A42DB #DB6A42 #42DB6A
tetradic
#6A42DB #DB4266 #B3DB42 #42DBB6
square
#6A42DB #DB4266 #B3DB42 #42DBB6
split-complementary
#6A42DB #DBB642 #66DB42
monochromatic
#371A89 #4C24BC #6A42DB #9375E5 #BBA9EF

Accessibility & contrast

On white

6.15
#6A42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#6A42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42DB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42DB#FFFFFF#000000##FFFFFF
##6A42DB1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#3F6A8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6a42db;
/* rgb */ color: rgb(106, 66, 219);
/* oklch */ color: oklch(51.8% 0.219 288.3);
Tailwind
colors: {
  custom: {
    50: '#9f7ae7',
    500: '#6a42db',
    950: '#000000',
  },
}
SCSS
$custom: #6a42db;
$custom-light: #9f7ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42db",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 255.686,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51776,
    "c": 0.21873,
    "h": 288.3
  },
  "luminance": 0.12075
}

Semantic roles & 50–950 ramp

primary
#6A42DB
secondary
#CCDC9D
accent
#EB3DBD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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