#6B42CE#6B42CE

#6B42CE is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.8% C 0.204 H 290.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6B42CE
RGBrgb(107, 66, 206)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 68%, 81%)
CMYKcmyk(48.1%, 68%, 0%, 19.2%)
CIE-LABlab(40.37, 50.13, -66.40)
CIE-LCHlch(40.37, 83.19, 307.05°)
OKLaboklab(50.79% 0.0722 -0.1903)
OKLCHoklch(50.79% 0.204 290.8)
XYZxyz(19.1490, 11.4777, 59.5870)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42CE #A5CE42
analogous
#425FCE #6B42CE #B142CE
triadic
#6B42CE #CE6B42 #42CE6B
tetradic
#6B42CE #CE425F #A5CE42 #42CEB1
square
#6B42CE #CE425F #A5CE42 #42CEB1
split-complementary
#6B42CE #CEB142 #5FCE42
monochromatic
#391F77 #502BA7 #6B42CE #9173DB #B7A3E7

Accessibility & contrast

On white

6.37
#6B42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6B42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42CE
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42CE#FFFFFF#000000##FFFFFF
##6B42CE1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#4B6583
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6b42ce;
/* rgb */ color: rgb(107, 66, 206);
/* oklch */ color: oklch(50.8% 0.204 290.8);
Tailwind
colors: {
  custom: {
    50: '#9e79de',
    500: '#6b42ce',
    950: '#000000',
  },
}
SCSS
$custom: #6b42ce;
$custom-light: #9e79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42ce",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 257.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50786,
    "c": 0.20355,
    "h": 290.8
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

primary
#6B42CE
secondary
#C2D498
accent
#E246B4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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