#6D42E2#6D42E2

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

Color values

HEX#6D42E2
RGBrgb(109, 66, 226)
HSLhsl(256, 73%, 57%)
HSVhsv(256, 71%, 89%)
CMYKcmyk(51.8%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.21, 55.98, -74.85)
CIE-LCHlch(42.21, 93.47, 306.79°)
OKLaboklab(52.65% 0.0714 -0.2151)
OKLCHoklch(52.65% 0.227 288.4)
XYZxyz(21.9783, 12.6376, 73.2180)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42E2 #B7E242
analogous
#4267E2 #6D42E2 #BD42E2
triadic
#6D42E2 #E26D42 #42E26D
tetradic
#6D42E2 #E24267 #B7E242 #42E2BD
square
#6D42E2 #E24267 #B7E242 #42E2BD
split-complementary
#6D42E2 #E2BD42 #67E242
monochromatic
#381793 #4C1FC8 #6D42E2 #9677EA #BFACF2

Accessibility & contrast

On white

5.95
#6D42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6D42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42E2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42E2#FFFFFF#000000##FFFFFF
##6D42E21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#406C8E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6d42e2;
/* rgb */ color: rgb(109, 66, 226);
/* oklch */ color: oklch(52.6% 0.227 288.4);
Tailwind
colors: {
  custom: {
    50: '#a17aec',
    500: '#6d42e2',
    950: '#000000',
  },
}
SCSS
$custom: #6d42e2;
$custom-light: #a17aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42e2",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 256.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5265,
    "c": 0.22661,
    "h": 288.4
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#6D42E2
secondary
#CFE09F
accent
#F038BF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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