#6342EA#6342EA

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

Color values

HEX#6342EA
RGBrgb(99, 66, 234)
HSLhsl(252, 80%, 59%)
HSVhsv(252, 72%, 92%)
CMYKcmyk(57.7%, 71.8%, 0%, 8.2%)
CIE-LABlab(41.98, 56.80, -79.81)
CIE-LCHlch(41.98, 97.95, 305.44°)
OKLaboklab(52.48% 0.0559 -0.2299)
OKLCHoklch(52.48% 0.237 283.7)
XYZxyz(21.9405, 12.4882, 79.0803)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342EA #C9EA42
analogous
#4275EA #6342EA #B742EA
triadic
#6342EA #EA6342 #42EA63
tetradic
#6342EA #EA4275 #C9EA42 #42EAB7
square
#6342EA #EA4275 #C9EA42 #42EAB7
split-complementary
#6342EA #EAB742 #75EA42
monochromatic
#2E12A0 #3D18D7 #6342EA #9079F0 #BEB0F6

Accessibility & contrast

On white

6.00
#6342EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6342EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342EA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342EA#FFFFFF#000000##FFFFFF
##6342EA1.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)
#0068EF
Deuteranopia (green-blind)
#005DE7
Tritanopia (blue-blind)
#107092
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6342ea;
/* rgb */ color: rgb(99, 66, 234);
/* oklch */ color: oklch(52.5% 0.237 283.7);
Tailwind
colors: {
  custom: {
    50: '#9d7af2',
    500: '#6342ea',
    950: '#000000',
  },
}
SCSS
$custom: #6342ea;
$custom-light: #9d7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6342ea",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 251.786,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52477,
    "c": 0.23659,
    "h": 283.7
  },
  "luminance": 0.1249
}

Semantic roles & 50–950 ramp

primary
#6342EA
secondary
#D8E5A3
accent
#F631D0
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6342EA

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

Preview Lab → · Contrast checker → · Palette generator →

#6342EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva