#6B42EA#6B42EA

#6B42EA is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.236 H 286.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#6B42EA
RGBrgb(107, 66, 234)
HSLhsl(255, 80%, 59%)
HSVhsv(255, 72%, 92%)
CMYKcmyk(54.3%, 71.8%, 0%, 8.2%)
CIE-LABlab(42.71, 57.90, -78.59)
CIE-LCHlch(42.71, 97.62, 306.38°)
OKLaboklab(53.16% 0.0669 -0.2261)
OKLCHoklch(53.16% 0.236 286.5)
XYZxyz(22.8585, 12.9615, 79.1233)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42EA #C1EA42
analogous
#426DEA #6B42EA #BF42EA
triadic
#6B42EA #EA6B42 #42EA6B
tetradic
#6B42EA #EA426D #C1EA42 #42EABF
square
#6B42EA #EA426D #C1EA42 #42EABF
split-complementary
#6B42EA #EABF42 #6DEA42
monochromatic
#3412A0 #4718D7 #6B42EA #9679F0 #C1B0F6

Accessibility & contrast

On white

5.85
#6B42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#6B42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42EA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42EA#FFFFFF#000000##FFFFFF
##6B42EA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#0060E7
Tritanopia (blue-blind)
#337092
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6b42ea;
/* rgb */ color: rgb(107, 66, 234);
/* oklch */ color: oklch(53.2% 0.236 286.5);
Tailwind
colors: {
  custom: {
    50: '#a17af2',
    500: '#6b42ea',
    950: '#000000',
  },
}
SCSS
$custom: #6b42ea;
$custom-light: #a17af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42ea",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 254.643,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53164,
    "c": 0.23579,
    "h": 286.5
  },
  "luminance": 0.12963
}

Semantic roles & 50–950 ramp

primary
#6B42EA
secondary
#D5E5A3
accent
#F631C6
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6B42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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