#6D42D2#6D42D2

#6D42D2 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.208 H 290.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6D42D2
RGBrgb(109, 66, 210)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 69%, 82%)
CMYKcmyk(48.1%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.90, 51.58, -67.84)
CIE-LCHlch(40.90, 85.22, 307.24°)
OKLaboklab(51.31% 0.0743 -0.1945)
OKLCHoklch(51.31% 0.208 290.9)
XYZxyz(19.8845, 11.8000, 62.1902)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42D2 #A7D242
analogous
#425FD2 #6D42D2 #B542D2
triadic
#6D42D2 #D26D42 #42D26D
tetradic
#6D42D2 #D2425F #A7D242 #42D2B5
square
#6D42D2 #D2425F #A7D242 #42D2B5
split-complementary
#6D42D2 #D2B542 #5FD242
monochromatic
#3A1E7C #5129AD #6D42D2 #9373DE #B9A5EA

Accessibility & contrast

On white

6.25
#6D42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6D42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42D2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42D2#FFFFFF#000000##FFFFFF
##6D42D21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#4C6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d42d2;
/* rgb */ color: rgb(109, 66, 210);
/* oklch */ color: oklch(51.3% 0.208 290.9);
Tailwind
colors: {
  custom: {
    50: '#9f7ae1',
    500: '#6d42d2',
    950: '#000000',
  },
}
SCSS
$custom: #6d42d2;
$custom-light: #9f7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42d2",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 257.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51307,
    "c": 0.20822,
    "h": 290.9
  },
  "luminance": 0.11801
}

Semantic roles & 50–950 ramp

primary
#6D42D2
secondary
#C4D799
accent
#E543B4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6D42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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