#682771#682771

#682771 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.0% C 0.135 H 322.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#682771
RGBrgb(104, 39, 113)
HSLhsl(293, 49%, 30%)
HSVhsv(293, 65%, 44%)
CMYKcmyk(8%, 65.5%, 0%, 55.7%)
CIE-LABlab(28.35, 40.20, -29.53)
CIE-LCHlch(28.35, 49.88, 323.71°)
OKLaboklab(39.95% 0.1075 -0.0821)
OKLCHoklch(39.95% 0.135 322.6)
XYZxyz(9.4148, 5.5868, 16.2020)
Luminance0.0559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682771 #307127
analogous
#432771 #682771 #712755
triadic
#682771 #716827 #277168
tetradic
#682771 #714327 #307127 #275571
square
#682771 #714327 #307127 #275571
split-complementary
#682771 #557127 #277143
monochromatic
#150817 #3E1744 #682771 #92379E #B550C3

Accessibility & contrast

On white

9.92
#682771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#682771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682771
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682771#FFFFFF#000000##FFFFFF
##6827711.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#31456F
Tritanopia (blue-blind)
#6A3248
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #682771;
/* rgb */ color: rgb(104, 39, 113);
/* oklch */ color: oklch(40.0% 0.135 322.6);
Tailwind
colors: {
  custom: {
    50: '#96669a',
    500: '#682771',
    950: '#000000',
  },
}
SCSS
$custom: #682771;
$custom-light: #96669a;
$custom-dark: #000000;
JSON
{
  "hex": "#682771",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 292.703,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.13531,
    "h": 322.6
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#682771
secondary
#5AA350
accent
#D85060
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #682771

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

Preview Lab → · Contrast checker → · Palette generator →

#682771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva