#6D42C8#6D42C8

#6D42C8 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.197 H 292.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#6D42C8
RGBrgb(109, 66, 200)
HSLhsl(259, 55%, 52%)
HSVhsv(259, 67%, 78%)
CMYKcmyk(45.5%, 67%, 0%, 21.6%)
CIE-LABlab(40.11, 48.84, -63.34)
CIE-LCHlch(40.11, 79.98, 307.63°)
OKLaboklab(50.5% 0.0759 -0.1813)
OKLCHoklch(50.5% 0.197 292.7)
XYZxyz(18.6773, 11.3172, 55.8327)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42C8 #9DC842
analogous
#425AC8 #6D42C8 #B042C8
triadic
#6D42C8 #C86D42 #42C86D
tetradic
#6D42C8 #C8425A #9DC842 #42C8B0
square
#6D42C8 #C8425A #9DC842 #42C8B0
split-complementary
#6D42C8 #C8B042 #5AC842
monochromatic
#3A206F #522E9F #6D42C8 #9271D6 #B6A1E4

Accessibility & contrast

On white

6.43
#6D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6D42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42C8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42C8#FFFFFF#000000##FFFFFF
##6D42C81.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#52637F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6d42c8;
/* rgb */ color: rgb(109, 66, 200);
/* oklch */ color: oklch(50.5% 0.197 292.7);
Tailwind
colors: {
  custom: {
    50: '#9e79da',
    500: '#6d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #6d42c8;
$custom-light: #9e79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42c8",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 259.254,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.19652,
    "h": 292.7
  },
  "luminance": 0.11318
}

Semantic roles & 50–950 ramp

primary
#6D42C8
secondary
#BDD096
accent
#DE4AAF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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