#6D42E1#6D42E1

#6D42E1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.225 H 288.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#6D42E1
RGBrgb(109, 66, 225)
HSLhsl(256, 73%, 57%)
HSVhsv(256, 71%, 88%)
CMYKcmyk(51.6%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.13, 55.70, -74.42)
CIE-LCHlch(42.13, 92.96, 306.81°)
OKLaboklab(52.57% 0.0716 -0.2138)
OKLCHoklch(52.57% 0.225 288.5)
XYZxyz(21.8415, 12.5829, 72.4974)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42E1 #B6E142
analogous
#4267E1 #6D42E1 #BC42E1
triadic
#6D42E1 #E16D42 #42E16D
tetradic
#6D42E1 #E14267 #B6E142 #42E1BC
square
#6D42E1 #E14267 #B6E142 #42E1BC
split-complementary
#6D42E1 #E1BC42 #67E142
monochromatic
#381792 #4D1FC6 #6D42E1 #9677E9 #BFACF2

Accessibility & contrast

On white

5.97
#6D42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#6D42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42E1
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42E1#FFFFFF#000000##FFFFFF
##6D42E11.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#416C8D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6d42e1;
/* rgb */ color: rgb(109, 66, 225);
/* oklch */ color: oklch(52.6% 0.225 288.5);
Tailwind
colors: {
  custom: {
    50: '#a17aec',
    500: '#6d42e1',
    950: '#000000',
  },
}
SCSS
$custom: #6d42e1;
$custom-light: #a17aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42e1",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 256.226,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52565,
    "c": 0.22548,
    "h": 288.5
  },
  "luminance": 0.12584
}

Semantic roles & 50–950 ramp

primary
#6D42E1
secondary
#CEE09F
accent
#EF38BE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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