#6842CA#6842CA

#6842CA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.199 H 290.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#6842CA
RGBrgb(104, 66, 202)
HSLhsl(257, 56%, 53%)
HSVhsv(257, 67%, 79%)
CMYKcmyk(48.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(39.75, 48.48, -65.10)
CIE-LCHlch(39.75, 81.17, 306.67°)
OKLaboklab(50.17% 0.0686 -0.1866)
OKLCHoklch(50.17% 0.199 290.2)
XYZxyz(18.3148, 11.1030, 57.0438)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842CA #A4CA42
analogous
#4260CA #6842CA #AC42CA
triadic
#6842CA #CA6842 #42CA68
tetradic
#6842CA #CA4260 #A4CA42 #42CAAC
square
#6842CA #CA4260 #A4CA42 #42CAAC
split-complementary
#6842CA #CAAC42 #60CA42
monochromatic
#372072 #4E2DA2 #6842CA #8E72D7 #B4A2E5

Accessibility & contrast

On white

6.52
#6842CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6842CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842CA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842CA#FFFFFF#000000##FFFFFF
##6842CA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#486481
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6842ca;
/* rgb */ color: rgb(104, 66, 202);
/* oklch */ color: oklch(50.2% 0.199 290.2);
Tailwind
colors: {
  custom: {
    50: '#9b79db',
    500: '#6842ca',
    950: '#000000',
  },
}
SCSS
$custom: #6842ca;
$custom-light: #9b79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6842ca",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 256.765,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50171,
    "c": 0.19884,
    "h": 290.2
  },
  "luminance": 0.11104
}

Semantic roles & 50–950 ramp

primary
#6842CA
secondary
#C1D196
accent
#DF48B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842CA

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

Preview Lab → · Contrast checker → · Palette generator →

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