#6847D5#6847D5

#6847D5 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 51.8% C 0.206 H 287.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#6847D5
RGBrgb(104, 71, 213)
HSLhsl(254, 63%, 56%)
HSVhsv(254, 67%, 84%)
CMYKcmyk(51.2%, 66.7%, 0%, 16.5%)
CIE-LABlab(41.62, 48.90, -68.42)
CIE-LCHlch(41.62, 84.10, 305.56°)
OKLaboklab(51.78% 0.0623 -0.1964)
OKLCHoklch(51.78% 0.206 287.6)
XYZxyz(19.9689, 12.2527, 64.2507)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6847D5 #B4D547
analogous
#476DD5 #6847D5 #AF47D5
triadic
#6847D5 #D56847 #47D568
tetradic
#6847D5 #D5476D #B4D547 #47D5AF
square
#6847D5 #D5476D #B4D547 #47D5AF
split-complementary
#6847D5 #D5AF47 #6DD547
monochromatic
#361E84 #4A29B5 #6847D5 #9179E0 #BAABEC

Accessibility & contrast

On white

6.09
#6847D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#6847D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6847D5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6847D5#FFFFFF#000000##FFFFFF
##6847D51.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#3F6B88
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6847d5;
/* rgb */ color: rgb(104, 71, 213);
/* oklch */ color: oklch(51.8% 0.206 287.6);
Tailwind
colors: {
  custom: {
    50: '#9c7ce3',
    500: '#6847d5',
    950: '#000000',
  },
}
SCSS
$custom: #6847d5;
$custom-light: #9c7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#6847d5",
  "rgb": {
    "r": 104,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 253.944,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.20601,
    "h": 287.6
  },
  "luminance": 0.12254
}

Semantic roles & 50–950 ramp

primary
#6847D5
secondary
#CCD99E
accent
#E642C0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #6847D5

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

Preview Lab → · Contrast checker → · Palette generator →

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