#6E42CA#6E42CA

#6E42CA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.199 H 292.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6E42CA
RGBrgb(110, 66, 202)
HSLhsl(259, 56%, 53%)
HSVhsv(259, 67%, 79%)
CMYKcmyk(45.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.37, 49.57, -64.07)
CIE-LCHlch(40.37, 81.01, 307.73°)
OKLaboklab(50.76% 0.077 -0.1834)
OKLCHoklch(50.76% 0.199 292.8)
XYZxyz(19.0363, 11.4751, 57.0776)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42CA #9ECA42
analogous
#425ACA #6E42CA #B242CA
triadic
#6E42CA #CA6E42 #42CA6E
tetradic
#6E42CA #CA425A #9ECA42 #42CAB2
square
#6E42CA #CA425A #9ECA42 #42CAB2
split-complementary
#6E42CA #CAB242 #5ACA42
monochromatic
#3A2072 #532DA2 #6E42CA #9372D7 #B7A2E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6E42CA#FFFFFF#000000##FFFFFF
##6E42CA1.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)
#0061CE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#536381
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6e42ca;
/* rgb */ color: rgb(110, 66, 202);
/* oklch */ color: oklch(50.8% 0.199 292.8);
Tailwind
colors: {
  custom: {
    50: '#9f79db',
    500: '#6e42ca',
    950: '#000000',
  },
}
SCSS
$custom: #6e42ca;
$custom-light: #9f79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42ca",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 259.412,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50757,
    "c": 0.1989,
    "h": 292.8
  },
  "luminance": 0.11476
}

Semantic roles & 50–950 ramp

primary
#6E42CA
secondary
#BED196
accent
#DF48AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6E42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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