#6D42B2#6D42B2

#6D42B2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.170 H 297.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#6D42B2
RGBrgb(109, 66, 178)
HSLhsl(263, 46%, 48%)
HSVhsv(263, 63%, 70%)
CMYKcmyk(38.8%, 62.9%, 0%, 30.2%)
CIE-LABlab(38.48, 42.88, -53.08)
CIE-LCHlch(38.48, 68.24, 308.93°)
OKLaboklab(48.81% 0.0782 -0.1511)
OKLCHoklch(48.81% 0.17 297.4)
XYZxyz(16.2887, 10.3617, 43.2527)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42B2 #87B242
analogous
#424FB2 #6D42B2 #A542B2
triadic
#6D42B2 #B26D42 #42B26D
tetradic
#6D42B2 #B2424F #87B242 #42B2A5
square
#6D42B2 #B2424F #87B242 #42B2A5
split-complementary
#6D42B2 #B2A542 #4FB242
monochromatic
#362159 #523185 #6D42B2 #8E6AC8 #B096D8

Accessibility & contrast

On white

6.84
#6D42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6D42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42B2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42B2#FFFFFF#000000##FFFFFF
##6D42B21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#0559B0
Tritanopia (blue-blind)
#5C5B74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6d42b2;
/* rgb */ color: rgb(109, 66, 178);
/* oklch */ color: oklch(48.8% 0.170 297.4);
Tailwind
colors: {
  custom: {
    50: '#9c79ca',
    500: '#6d42b2',
    950: '#000000',
  },
}
SCSS
$custom: #6d42b2;
$custom-light: #9c79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42b2",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 263.036,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48813,
    "c": 0.17017,
    "h": 297.4
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#6D42B2
secondary
#AEC48C
accent
#D652A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0913
muted
#7E7B82

Preview Lab

Preview with #6D42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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