#6D42CA#6D42CA

#6D42CA is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.199 H 292.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6D42CA
RGBrgb(109, 66, 202)
HSLhsl(259, 56%, 53%)
HSVhsv(259, 67%, 79%)
CMYKcmyk(46%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.26, 49.38, -64.25)
CIE-LCHlch(40.26, 81.03, 307.55°)
OKLaboklab(50.66% 0.0756 -0.1839)
OKLCHoklch(50.66% 0.199 292.3)
XYZxyz(18.9126, 11.4113, 57.0718)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42CA #9FCA42
analogous
#425BCA #6D42CA #B142CA
triadic
#6D42CA #CA6D42 #42CA6D
tetradic
#6D42CA #CA425B #9FCA42 #42CAB1
square
#6D42CA #CA425B #9FCA42 #42CAB1
split-complementary
#6D42CA #CAB142 #5BCA42
monochromatic
#3A2072 #522DA2 #6D42CA #9272D7 #B7A2E5

Accessibility & contrast

On white

6.40
#6D42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6D42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42CA
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42CA#FFFFFF#000000##FFFFFF
##6D42CA1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#516381
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d42ca;
/* rgb */ color: rgb(109, 66, 202);
/* oklch */ color: oklch(50.7% 0.199 292.3);
Tailwind
colors: {
  custom: {
    50: '#9e79db',
    500: '#6d42ca',
    950: '#000000',
  },
}
SCSS
$custom: #6d42ca;
$custom-light: #9e79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42ca",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 258.971,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50658,
    "c": 0.19886,
    "h": 292.3
  },
  "luminance": 0.11412
}

Semantic roles & 50–950 ramp

primary
#6D42CA
secondary
#BFD196
accent
#DF48B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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