#6842E1#6842E1

#6842E1 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.226 H 286.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#6842E1
RGBrgb(104, 66, 225)
HSLhsl(254, 73%, 57%)
HSVhsv(254, 71%, 88%)
CMYKcmyk(53.8%, 70.7%, 0%, 11.8%)
CIE-LABlab(41.65, 54.95, -75.23)
CIE-LCHlch(41.65, 93.16, 306.15°)
OKLaboklab(52.11% 0.0646 -0.2163)
OKLCHoklch(52.11% 0.226 286.6)
XYZxyz(21.2437, 12.2746, 72.4694)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842E1 #BBE142
analogous
#426BE1 #6842E1 #B842E1
triadic
#6842E1 #E16842 #42E168
tetradic
#6842E1 #E1426B #BBE142 #42E1B8
square
#6842E1 #E1426B #BBE142 #42E1B8
split-complementary
#6842E1 #E1B842 #6BE142
monochromatic
#341792 #471FC6 #6842E1 #9277E9 #BCACF2

Accessibility & contrast

On white

6.08
#6842E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6842E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842E1
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842E1#FFFFFF#000000##FFFFFF
##6842E11.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#356C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6842e1;
/* rgb */ color: rgb(104, 66, 225);
/* oklch */ color: oklch(52.1% 0.226 286.6);
Tailwind
colors: {
  custom: {
    50: '#9e7aec',
    500: '#6842e1',
    950: '#000000',
  },
}
SCSS
$custom: #6842e1;
$custom-light: #9e7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6842e1",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 254.34,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52111,
    "c": 0.22577,
    "h": 286.6
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#6842E1
secondary
#D0E09F
accent
#EF38C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6842E1

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

Preview Lab → · Contrast checker → · Palette generator →

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