#6D42E3#6D42E3

#6D42E3 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.228 H 288.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#6D42E3
RGBrgb(109, 66, 227)
HSLhsl(256, 74%, 57%)
HSVhsv(256, 71%, 89%)
CMYKcmyk(52%, 70.9%, 0%, 11%)
CIE-LABlab(42.30, 56.26, -75.28)
CIE-LCHlch(42.30, 93.98, 306.77°)
OKLaboklab(52.74% 0.0712 -0.2163)
OKLCHoklch(52.74% 0.228 288.2)
XYZxyz(22.1159, 12.6926, 73.9427)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42E3 #B8E342
analogous
#4267E3 #6D42E3 #BE42E3
triadic
#6D42E3 #E36D42 #42E36D
tetradic
#6D42E3 #E34267 #B8E342 #42E3BE
square
#6D42E3 #E34267 #B8E342 #42E3BE
split-complementary
#6D42E3 #E3BE42 #67E342
monochromatic
#381695 #4C1ECA #6D42E3 #9677EB #BFADF3

Accessibility & contrast

On white

5.93
#6D42E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6D42E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42E3
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42E3#FFFFFF#000000##FFFFFF
##6D42E31.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E8
Deuteranopia (green-blind)
#0060E0
Tritanopia (blue-blind)
#406D8E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6d42e3;
/* rgb */ color: rgb(109, 66, 227);
/* oklch */ color: oklch(52.7% 0.228 288.2);
Tailwind
colors: {
  custom: {
    50: '#a27aed',
    500: '#6d42e3',
    950: '#000000',
  },
}
SCSS
$custom: #6d42e3;
$custom-light: #a27aed;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42e3",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 256.025,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52736,
    "c": 0.22774,
    "h": 288.2
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

primary
#6D42E3
secondary
#D0E1A0
accent
#F137BF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42E3

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

Preview Lab → · Contrast checker → · Palette generator →

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