#6342DD#6342DD

#6342DD is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.222 H 285.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#6342DD
RGBrgb(99, 66, 221)
HSLhsl(253, 70%, 56%)
HSVhsv(253, 70%, 87%)
CMYKcmyk(55.2%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.85, 53.07, -74.28)
CIE-LCHlch(40.85, 91.29, 305.54°)
OKLaboklab(51.32% 0.0585 -0.2137)
OKLCHoklch(51.32% 0.222 285.3)
XYZxyz(20.1410, 11.7684, 69.6028)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342DD #BCDD42
analogous
#426FDD #6342DD #B142DD
triadic
#6342DD #DD6342 #42DD63
tetradic
#6342DD #DD426F #BCDD42 #42DDB1
square
#6342DD #DD426F #BCDD42 #42DDB1
split-complementary
#6342DD #DDB142 #6FDD42
monochromatic
#31198C #4422BF #6342DD #8E76E6 #B9AAF0

Accessibility & contrast

On white

6.26
#6342DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6342DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342DD
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342DD#FFFFFF#000000##FFFFFF
##6342DD1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E2
Deuteranopia (green-blind)
#005CDA
Tritanopia (blue-blind)
#2A6B8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6342dd;
/* rgb */ color: rgb(99, 66, 221);
/* oklch */ color: oklch(51.3% 0.222 285.3);
Tailwind
colors: {
  custom: {
    50: '#9b79e9',
    500: '#6342dd',
    950: '#000000',
  },
}
SCSS
$custom: #6342dd;
$custom-light: #9b79e9;
$custom-dark: #000000;
JSON
{
  "hex": "#6342dd",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 252.774,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51323,
    "c": 0.22155,
    "h": 285.3
  },
  "luminance": 0.1177
}

Semantic roles & 50–950 ramp

primary
#6342DD
secondary
#D0DD9D
accent
#EC3BC7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6342DD

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

Preview Lab → · Contrast checker → · Palette generator →

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