#6842CE#6842CE

#6842CE is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.204 H 289.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6842CE
RGBrgb(104, 66, 206)
HSLhsl(256, 59%, 53%)
HSVhsv(256, 68%, 81%)
CMYKcmyk(49.5%, 68%, 0%, 19.2%)
CIE-LABlab(40.07, 49.60, -66.90)
CIE-LCHlch(40.07, 83.28, 306.56°)
OKLaboklab(50.5% 0.068 -0.1919)
OKLCHoklch(50.5% 0.204 289.5)
XYZxyz(18.7945, 11.2949, 59.5704)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842CE #A8CE42
analogous
#4262CE #6842CE #AE42CE
triadic
#6842CE #CE6842 #42CE68
tetradic
#6842CE #CE4262 #A8CE42 #42CEAE
square
#6842CE #CE4262 #A8CE42 #42CEAE
split-complementary
#6842CE #CEAE42 #62CE42
monochromatic
#371F77 #4D2BA7 #6842CE #8F73DB #B6A3E7

Accessibility & contrast

On white

6.44
#6842CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6842CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842CE
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842CE#FFFFFF#000000##FFFFFF
##6842CE1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#456583
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6842ce;
/* rgb */ color: rgb(104, 66, 206);
/* oklch */ color: oklch(50.5% 0.204 289.5);
Tailwind
colors: {
  custom: {
    50: '#9c79de',
    500: '#6842ce',
    950: '#000000',
  },
}
SCSS
$custom: #6842ce;
$custom-light: #9c79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6842ce",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 256.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50499,
    "c": 0.2036,
    "h": 289.5
  },
  "luminance": 0.11296
}

Semantic roles & 50–950 ramp

primary
#6842CE
secondary
#C4D498
accent
#E246B8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842CE

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

Preview Lab → · Contrast checker → · Palette generator →

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