#68168C#68168C

#68168C is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.2% C 0.181 H 312.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#68168C
RGBrgb(104, 22, 140)
HSLhsl(282, 73%, 32%)
HSVhsv(282, 84%, 55%)
CMYKcmyk(25.7%, 84.3%, 0%, 45.1%)
CIE-LABlab(27.87, 52.53, -47.29)
CIE-LCHlch(27.87, 70.68, 318.01°)
OKLaboklab(40.21% 0.1218 -0.134)
OKLCHoklch(40.21% 0.181 312.3)
XYZxyz(10.7286, 5.4106, 25.2851)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68168C #3A8C16
analogous
#2D168C #68168C #8C1675
triadic
#68168C #8C6816 #168C68
tetradic
#68168C #8C2D16 #3A8C16 #16758C
square
#68168C #8C2D16 #3A8C16 #16758C
split-complementary
#68168C #758C16 #168C2D
monochromatic
#190522 #410E57 #68168C #8F1EC1 #AE3CE0

Accessibility & contrast

On white

10.09
#68168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#68168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68168C
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68168C#FFFFFF#000000##FFFFFF
##68168C1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#643553
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68168c;
/* rgb */ color: rgb(104, 22, 140);
/* oklch */ color: oklch(40.2% 0.181 312.3);
Tailwind
colors: {
  custom: {
    50: '#9860ae',
    500: '#68168c',
    950: '#000000',
  },
}
SCSS
$custom: #68168c;
$custom-light: #9860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#68168c",
  "rgb": {
    "r": 104,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 281.695,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40212,
    "c": 0.18107,
    "h": 312.3
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#68168C
secondary
#66C03E
accent
#F03870
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #68168C

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

Preview Lab → · Contrast checker → · Palette generator →

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