#6A42C8#6A42C8

#6A42C8 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.196 H 291.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6A42C8
RGBrgb(106, 66, 200)
HSLhsl(258, 55%, 52%)
HSVhsv(258, 67%, 78%)
CMYKcmyk(47%, 67%, 0%, 21.6%)
CIE-LABlab(39.80, 48.28, -63.86)
CIE-LCHlch(39.80, 80.06, 307.09°)
OKLaboklab(50.2% 0.0717 -0.1829)
OKLCHoklch(50.2% 0.196 291.4)
XYZxyz(18.3145, 11.1301, 55.8157)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42C8 #A0C842
analogous
#425DC8 #6A42C8 #AD42C8
triadic
#6A42C8 #C86A42 #42C86A
tetradic
#6A42C8 #C8425D #A0C842 #42C8AD
square
#6A42C8 #C8425D #A0C842 #42C8AD
split-complementary
#6A42C8 #C8AD42 #5DC842
monochromatic
#38206F #502E9F #6A42C8 #8F71D6 #B5A1E4

Accessibility & contrast

On white

6.51
#6A42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6A42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42C8
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42C8#FFFFFF#000000##FFFFFF
##6A42C81.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#4D637F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6a42c8;
/* rgb */ color: rgb(106, 66, 200);
/* oklch */ color: oklch(50.2% 0.196 291.4);
Tailwind
colors: {
  custom: {
    50: '#9c79da',
    500: '#6a42c8',
    950: '#000000',
  },
}
SCSS
$custom: #6a42c8;
$custom-light: #9c79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42c8",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 257.91,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.19645,
    "h": 291.4
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#6A42C8
secondary
#BFD096
accent
#DE4AB2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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