#6842CC#6842CC

#6842CC is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.3% C 0.201 H 289.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6842CC
RGBrgb(104, 66, 204)
HSLhsl(257, 58%, 53%)
HSVhsv(257, 68%, 80%)
CMYKcmyk(49%, 67.6%, 0%, 20%)
CIE-LABlab(39.91, 49.04, -66.00)
CIE-LCHlch(39.91, 82.23, 306.61°)
OKLaboklab(50.33% 0.0683 -0.1893)
OKLCHoklch(50.33% 0.201 289.8)
XYZxyz(18.5531, 11.1984, 58.2990)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842CC #A6CC42
analogous
#4261CC #6842CC #AD42CC
triadic
#6842CC #CC6842 #42CC68
tetradic
#6842CC #CC4261 #A6CC42 #42CCAD
square
#6842CC #CC4261 #A6CC42 #42CCAD
split-complementary
#6842CC #CCAD42 #61CC42
monochromatic
#371F74 #4D2CA4 #6842CC #8F72D9 #B5A2E6

Accessibility & contrast

On white

6.48
#6842CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6842CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842CC
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842CC#FFFFFF#000000##FFFFFF
##6842CC1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6842cc;
/* rgb */ color: rgb(104, 66, 204);
/* oklch */ color: oklch(50.3% 0.201 289.8);
Tailwind
colors: {
  custom: {
    50: '#9c79dd',
    500: '#6842cc',
    950: '#000000',
  },
}
SCSS
$custom: #6842cc;
$custom-light: #9c79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6842cc",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 256.522,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50335,
    "c": 0.20122,
    "h": 289.8
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

primary
#6842CC
secondary
#C2D397
accent
#E147B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842CC

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

Preview Lab → · Contrast checker → · Palette generator →

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