#6B42E2#6B42E2

#6B42E2 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.227 H 287.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#6B42E2
RGBrgb(107, 66, 226)
HSLhsl(255, 73%, 57%)
HSVhsv(255, 71%, 89%)
CMYKcmyk(52.7%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.02, 55.68, -75.18)
CIE-LCHlch(42.02, 93.55, 306.52°)
OKLaboklab(52.47% 0.0686 -0.2161)
OKLCHoklch(52.47% 0.227 287.6)
XYZxyz(21.7350, 12.5121, 73.2066)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42E2 #B9E242
analogous
#4269E2 #6B42E2 #BB42E2
triadic
#6B42E2 #E26B42 #42E26B
tetradic
#6B42E2 #E24269 #B9E242 #42E2BB
square
#6B42E2 #E24269 #B9E242 #42E2BB
split-complementary
#6B42E2 #E2BB42 #69E242
monochromatic
#361793 #4A1FC8 #6B42E2 #9577EA #BEACF2

Accessibility & contrast

On white

6.00
#6B42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6B42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42E2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42E2#FFFFFF#000000##FFFFFF
##6B42E21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#3B6C8E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6b42e2;
/* rgb */ color: rgb(107, 66, 226);
/* oklch */ color: oklch(52.5% 0.227 287.6);
Tailwind
colors: {
  custom: {
    50: '#a07aec',
    500: '#6b42e2',
    950: '#000000',
  },
}
SCSS
$custom: #6b42e2;
$custom-light: #a07aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42e2",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 255.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52467,
    "c": 0.22672,
    "h": 287.6
  },
  "luminance": 0.12513
}

Semantic roles & 50–950 ramp

primary
#6B42E2
secondary
#D0E09F
accent
#F038C1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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