#6D42CC#6D42CC

#6D42CC is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.8% C 0.201 H 292.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6D42CC
RGBrgb(109, 66, 204)
HSLhsl(259, 58%, 53%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(46.6%, 67.6%, 0%, 20%)
CIE-LABlab(40.42, 49.93, -65.15)
CIE-LCHlch(40.42, 82.09, 307.47°)
OKLaboklab(50.82% 0.0753 -0.1866)
OKLCHoklch(50.82% 0.201 292)
XYZxyz(19.1509, 11.5066, 58.3270)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42CC #A1CC42
analogous
#425CCC #6D42CC #B242CC
triadic
#6D42CC #CC6D42 #42CC6D
tetradic
#6D42CC #CC425C #A1CC42 #42CCB2
square
#6D42CC #CC425C #A1CC42 #42CCB2
split-complementary
#6D42CC #CCB242 #5CCC42
monochromatic
#3A1F74 #522CA4 #6D42CC #9272D9 #B7A2E6

Accessibility & contrast

On white

6.36
#6D42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6D42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42CC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42CC#FFFFFF#000000##FFFFFF
##6D42CC1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#506482
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d42cc;
/* rgb */ color: rgb(109, 66, 204);
/* oklch */ color: oklch(50.8% 0.201 292.0);
Tailwind
colors: {
  custom: {
    50: '#9f79dd',
    500: '#6d42cc',
    950: '#000000',
  },
}
SCSS
$custom: #6d42cc;
$custom-light: #9f79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42cc",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 258.696,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50819,
    "c": 0.20121,
    "h": 292
  },
  "luminance": 0.11507
}

Semantic roles & 50–950 ramp

primary
#6D42CC
secondary
#C0D397
accent
#E147B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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