#6B42DF#6B42DF

#6B42DF is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.223 H 288.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#6B42DF
RGBrgb(107, 66, 223)
HSLhsl(256, 71%, 57%)
HSVhsv(256, 70%, 87%)
CMYKcmyk(52%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.77, 54.84, -73.88)
CIE-LCHlch(41.77, 92.01, 306.59°)
OKLaboklab(52.21% 0.0692 -0.2123)
OKLCHoklch(52.21% 0.223 288)
XYZxyz(21.3270, 12.3489, 71.0576)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42DF #B6DF42
analogous
#4268DF #6B42DF #BA42DF
triadic
#6B42DF #DF6B42 #42DF6B
tetradic
#6B42DF #DF4268 #B6DF42 #42DFBA
square
#6B42DF #DF4268 #B6DF42 #42DFBA
split-complementary
#6B42DF #DFBA42 #68DF42
monochromatic
#37188E #4B21C3 #6B42DF #9476E8 #BDABF1

Accessibility & contrast

On white

6.05
#6B42DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6B42DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42DF
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42DF#FFFFFF#000000##FFFFFF
##6B42DF1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#3E6B8C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6b42df;
/* rgb */ color: rgb(107, 66, 223);
/* oklch */ color: oklch(52.2% 0.223 288.0);
Tailwind
colors: {
  custom: {
    50: '#a07aea',
    500: '#6b42df',
    950: '#000000',
  },
}
SCSS
$custom: #6b42df;
$custom-light: #a07aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42df",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 255.669,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52209,
    "c": 0.22328,
    "h": 288
  },
  "luminance": 0.1235
}

Semantic roles & 50–950 ramp

primary
#6B42DF
secondary
#CEDF9E
accent
#EE3ABF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B42DF

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

Preview Lab → · Contrast checker → · Palette generator →

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