#681271#681271

#681271 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.161 H 323.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#681271
RGBrgb(104, 18, 113)
HSLhsl(294, 73%, 26%)
HSVhsv(294, 84%, 44%)
CMYKcmyk(8%, 84.1%, 0%, 55.7%)
CIE-LABlab(25.47, 48.35, -34.11)
CIE-LCHlch(25.47, 59.18, 324.80°)
OKLaboklab(37.89% 0.1298 -0.0953)
OKLCHoklch(37.89% 0.161 323.7)
XYZxyz(8.9056, 4.5685, 16.0323)
Luminance0.0457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#681271 #1B7112
analogous
#381271 #681271 #71124A
triadic
#681271 #716812 #127168
tetradic
#681271 #713812 #1B7112 #124A71
square
#681271 #713812 #1B7112 #124A71
split-complementary
#681271 #4A7112 #127138
monochromatic
#18041A #370A3C #681271 #991AA6 #C923DB

Accessibility & contrast

On white

10.97
#681271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#681271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #681271
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##681271#FFFFFF#000000##FFFFFF
##6812711.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#25406F
Tritanopia (blue-blind)
#6A2642
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #681271;
/* rgb */ color: rgb(104, 18, 113);
/* oklch */ color: oklch(37.9% 0.161 323.7);
Tailwind
colors: {
  custom: {
    50: '#975d9a',
    500: '#681271',
    950: '#000000',
  },
}
SCSS
$custom: #681271;
$custom-light: #975d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#681271",
  "rgb": {
    "r": 104,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 294.316,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.16104,
    "h": 323.7
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#681271
secondary
#42A837
accent
#EF394A
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #681271

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

Preview Lab → · Contrast checker → · Palette generator →

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