#682271#682271

#682271 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.4% C 0.143 H 323.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#682271
RGBrgb(104, 34, 113)
HSLhsl(293, 54%, 29%)
HSVhsv(293, 70%, 44%)
CMYKcmyk(8%, 69.9%, 0%, 55.7%)
CIE-LABlab(27.52, 42.50, -30.84)
CIE-LCHlch(27.52, 52.51, 324.04°)
OKLaboklab(39.35% 0.1138 -0.0859)
OKLCHoklch(39.35% 0.143 323)
XYZxyz(9.2613, 5.2799, 16.1509)
Luminance0.0528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682271 #2B7122
analogous
#412271 #682271 #712253
triadic
#682271 #716822 #227168
tetradic
#682271 #714122 #2B7122 #225371
square
#682271 #714122 #2B7122 #225371
split-complementary
#682271 #537122 #227141
monochromatic
#160718 #3D1442 #682271 #9330A0 #B946C7

Accessibility & contrast

On white

10.22
#682271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#682271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682271
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682271#FFFFFF#000000##FFFFFF
##6822711.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C73
Deuteranopia (green-blind)
#2E446F
Tritanopia (blue-blind)
#6A2F46
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #682271;
/* rgb */ color: rgb(104, 34, 113);
/* oklch */ color: oklch(39.4% 0.143 323.0);
Tailwind
colors: {
  custom: {
    50: '#96639a',
    500: '#682271',
    950: '#000000',
  },
}
SCSS
$custom: #682271;
$custom-light: #96639a;
$custom-dark: #000000;
JSON
{
  "hex": "#682271",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 293.165,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39352,
    "c": 0.1426,
    "h": 323
  },
  "luminance": 0.05279
}

Semantic roles & 50–950 ramp

primary
#682271
secondary
#55A44A
accent
#DD4B5B
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #682271

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

Preview Lab → · Contrast checker → · Palette generator →

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