#68168D#68168D

#68168D is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.3% C 0.182 H 311.9°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#68168D
RGBrgb(104, 22, 141)
HSLhsl(281, 73%, 32%)
HSVhsv(281, 84%, 55%)
CMYKcmyk(26.2%, 84.4%, 0%, 44.7%)
CIE-LABlab(27.95, 52.74, -47.78)
CIE-LCHlch(27.95, 71.16, 317.83°)
OKLaboklab(40.29% 0.1215 -0.1355)
OKLCHoklch(40.29% 0.182 311.9)
XYZxyz(10.8026, 5.4403, 25.6752)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68168D #3B8D16
analogous
#2D168D #68168D #8D1676
triadic
#68168D #8D6816 #168D68
tetradic
#68168D #8D2D16 #3B8D16 #16768D
square
#68168D #8D2D16 #3B8D16 #16768D
split-complementary
#68168D #768D16 #168D2D
monochromatic
#1A0523 #410E58 #68168D #8F1EC2 #AE3DE1

Accessibility & contrast

On white

10.06
#68168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#68168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68168D
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68168D#FFFFFF#000000##FFFFFF
##68168D1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#633553
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68168d;
/* rgb */ color: rgb(104, 22, 141);
/* oklch */ color: oklch(40.3% 0.182 311.9);
Tailwind
colors: {
  custom: {
    50: '#9860af',
    500: '#68168d',
    950: '#000000',
  },
}
SCSS
$custom: #68168d;
$custom-light: #9860af;
$custom-dark: #000000;
JSON
{
  "hex": "#68168d",
  "rgb": {
    "r": 104,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 281.345,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40293,
    "c": 0.18197,
    "h": 311.9
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#68168D
secondary
#67C13E
accent
#F03871
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #68168D

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

Preview Lab → · Contrast checker → · Palette generator →

#68168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva