#6A42CB#6A42CB

#6A42CB is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.4% C 0.200 H 290.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#6A42CB
RGBrgb(106, 66, 203)
HSLhsl(258, 57%, 53%)
HSVhsv(258, 67%, 80%)
CMYKcmyk(47.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(40.03, 49.12, -65.22)
CIE-LCHlch(40.03, 81.64, 306.98°)
OKLaboklab(50.44% 0.0713 -0.1869)
OKLCHoklch(50.44% 0.2 290.9)
XYZxyz(18.6685, 11.2717, 57.6803)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42CB #A3CB42
analogous
#425FCB #6A42CB #AE42CB
triadic
#6A42CB #CB6A42 #42CB6A
tetradic
#6A42CB #CB425F #A3CB42 #42CBAE
square
#6A42CB #CB425F #A3CB42 #42CBAE
split-complementary
#6A42CB #CBAE42 #5FCB42
monochromatic
#382073 #4F2DA3 #6A42CB #9072D8 #B6A2E5

Accessibility & contrast

On white

6.45
#6A42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6A42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42CB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42CB#FFFFFF#000000##FFFFFF
##6A42CB1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#4B6481
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6a42cb;
/* rgb */ color: rgb(106, 66, 203);
/* oklch */ color: oklch(50.4% 0.200 290.9);
Tailwind
colors: {
  custom: {
    50: '#9d79dc',
    500: '#6a42cb',
    950: '#000000',
  },
}
SCSS
$custom: #6a42cb;
$custom-light: #9d79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42cb",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 257.518,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50445,
    "c": 0.20001,
    "h": 290.9
  },
  "luminance": 0.11272
}

Semantic roles & 50–950 ramp

primary
#6A42CB
secondary
#C1D297
accent
#E048B4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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