#6847D6#6847D6

#6847D6 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 51.9% C 0.207 H 287.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#6847D6
RGBrgb(104, 71, 214)
HSLhsl(254, 64%, 56%)
HSVhsv(254, 67%, 84%)
CMYKcmyk(51.4%, 66.8%, 0%, 16.1%)
CIE-LABlab(41.69, 49.19, -68.86)
CIE-LCHlch(41.69, 84.62, 305.54°)
OKLaboklab(51.86% 0.0622 -0.1977)
OKLCHoklch(51.86% 0.207 287.5)
XYZxyz(20.0962, 12.3036, 64.9212)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6847D6 #B5D647
analogous
#476DD6 #6847D6 #AF47D6
triadic
#6847D6 #D66847 #47D668
tetradic
#6847D6 #D6476D #B5D647 #47D6AF
square
#6847D6 #D6476D #B5D647 #47D6AF
split-complementary
#6847D6 #D6AF47 #6DD647
monochromatic
#351E85 #4A29B7 #6847D6 #9179E1 #BAABEC

Accessibility & contrast

On white

6.07
#6847D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6847D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6847D6
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6847D6#FFFFFF#000000##FFFFFF
##6847D61.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#3E6B89
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6847d6;
/* rgb */ color: rgb(104, 71, 214);
/* oklch */ color: oklch(51.9% 0.207 287.5);
Tailwind
colors: {
  custom: {
    50: '#9d7ce4',
    500: '#6847d6',
    950: '#000000',
  },
}
SCSS
$custom: #6847d6;
$custom-light: #9d7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#6847d6",
  "rgb": {
    "r": 104,
    "g": 71,
    "b": 214
  },
  "hsl": {
    "h": 253.846,
    "s": 63.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51863,
    "c": 0.20721,
    "h": 287.5
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

primary
#6847D6
secondary
#CCDA9F
accent
#E741C0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #6847D6

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

Preview Lab → · Contrast checker → · Palette generator →

#6847D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva