#6C42DB#6C42DB

#6C42DB is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.219 H 289.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#6C42DB
RGBrgb(108, 66, 219)
HSLhsl(256, 68%, 56%)
HSVhsv(256, 70%, 86%)
CMYKcmyk(50.7%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.53, 53.89, -71.98)
CIE-LCHlch(41.53, 89.92, 306.82°)
OKLaboklab(51.96% 0.0713 -0.2067)
OKLCHoklch(51.96% 0.219 289)
XYZxyz(20.9150, 12.1981, 68.2565)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42DB #B1DB42
analogous
#4264DB #6C42DB #B942DB
triadic
#6C42DB #DB6C42 #42DB6C
tetradic
#6C42DB #DB4264 #B1DB42 #42DBB9
square
#6C42DB #DB4264 #B1DB42 #42DBB9
split-complementary
#6C42DB #DBB942 #64DB42
monochromatic
#381A89 #4E24BC #6C42DB #9475E5 #BCA9EF

Accessibility & contrast

On white

6.11
#6C42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#6C42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42DB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42DB#FFFFFF#000000##FFFFFF
##6C42DB1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#446A8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6c42db;
/* rgb */ color: rgb(108, 66, 219);
/* oklch */ color: oklch(52.0% 0.219 289.0);
Tailwind
colors: {
  custom: {
    50: '#a07ae7',
    500: '#6c42db',
    950: '#000000',
  },
}
SCSS
$custom: #6c42db;
$custom-light: #a07ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42db",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 256.471,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.21864,
    "h": 289
  },
  "luminance": 0.12199
}

Semantic roles & 50–950 ramp

primary
#6C42DB
secondary
#CBDC9D
accent
#EB3DBB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6C42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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