#6842CD#6842CD

#6842CD is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.202 H 289.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#6842CD
RGBrgb(104, 66, 205)
HSLhsl(256, 58%, 53%)
HSVhsv(256, 68%, 80%)
CMYKcmyk(49.3%, 67.8%, 0%, 19.6%)
CIE-LABlab(39.99, 49.32, -66.45)
CIE-LCHlch(39.99, 82.75, 306.58°)
OKLaboklab(50.42% 0.0682 -0.1906)
OKLCHoklch(50.42% 0.202 289.7)
XYZxyz(18.6734, 11.2465, 58.9326)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842CD #A7CD42
analogous
#4261CD #6842CD #AD42CD
triadic
#6842CD #CD6842 #42CD68
tetradic
#6842CD #CD4261 #A7CD42 #42CDAD
square
#6842CD #CD4261 #A7CD42 #42CDAD
split-complementary
#6842CD #CDAD42 #61CD42
monochromatic
#371F76 #4D2CA6 #6842CD #8F72DA #B5A3E7

Accessibility & contrast

On white

6.46
#6842CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6842CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842CD
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842CD#FFFFFF#000000##FFFFFF
##6842CD1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#466582
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6842cd;
/* rgb */ color: rgb(104, 66, 205);
/* oklch */ color: oklch(50.4% 0.202 289.7);
Tailwind
colors: {
  custom: {
    50: '#9c79dd',
    500: '#6842cd',
    950: '#000000',
  },
}
SCSS
$custom: #6842cd;
$custom-light: #9c79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6842cd",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 256.403,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50417,
    "c": 0.20241,
    "h": 289.7
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

primary
#6842CD
secondary
#C3D397
accent
#E146B7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842CD

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

Preview Lab → · Contrast checker → · Palette generator →

#6842CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva