#6B42D2#6B42D2

#6B42D2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.208 H 290.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6B42D2
RGBrgb(107, 66, 210)
HSLhsl(257, 62%, 54%)
HSVhsv(257, 69%, 82%)
CMYKcmyk(49%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.69, 51.23, -68.18)
CIE-LCHlch(40.69, 85.29, 306.92°)
OKLaboklab(51.12% 0.0715 -0.1956)
OKLCHoklch(51.12% 0.208 290.1)
XYZxyz(19.6411, 11.6746, 62.1788)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42D2 #A9D242
analogous
#4261D2 #6B42D2 #B342D2
triadic
#6B42D2 #D26B42 #42D26B
tetradic
#6B42D2 #D24261 #A9D242 #42D2B3
square
#6B42D2 #D24261 #A9D242 #42D2B3
split-complementary
#6B42D2 #D2B342 #61D242
monochromatic
#381E7C #4F29AD #6B42D2 #9273DE #B8A5EA

Accessibility & contrast

On white

6.30
#6B42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6B42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42D2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42D2#FFFFFF#000000##FFFFFF
##6B42D21.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b42d2;
/* rgb */ color: rgb(107, 66, 210);
/* oklch */ color: oklch(51.1% 0.208 290.1);
Tailwind
colors: {
  custom: {
    50: '#9e79e1',
    500: '#6b42d2',
    950: '#000000',
  },
}
SCSS
$custom: #6b42d2;
$custom-light: #9e79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42d2",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 257.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51115,
    "c": 0.20823,
    "h": 290.1
  },
  "luminance": 0.11675
}

Semantic roles & 50–950 ramp

primary
#6B42D2
secondary
#C5D799
accent
#E543B7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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