#68178D#68178D

#68178D is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.181 H 311.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#68178D
RGBrgb(104, 23, 141)
HSLhsl(281, 72%, 32%)
HSVhsv(281, 84%, 55%)
CMYKcmyk(26.2%, 83.7%, 0%, 44.7%)
CIE-LABlab(28.06, 52.43, -47.61)
CIE-LCHlch(28.06, 70.82, 317.76°)
OKLaboklab(40.37% 0.1208 -0.135)
OKLCHoklch(40.37% 0.181 311.8)
XYZxyz(10.8221, 5.4792, 25.6816)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68178D #3C8D17
analogous
#2D178D #68178D #8D1777
triadic
#68178D #8D6817 #178D68
tetradic
#68178D #8D2D17 #3C8D17 #17778D
square
#68178D #8D2D17 #3C8D17 #17778D
split-complementary
#68178D #778D17 #178D2D
monochromatic
#1A0624 #410E58 #68178D #8F20C2 #AD3FE0

Accessibility & contrast

On white

10.02
#68178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#68178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68178D
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68178D#FFFFFF#000000##FFFFFF
##68178D1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#633653
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68178d;
/* rgb */ color: rgb(104, 23, 141);
/* oklch */ color: oklch(40.4% 0.181 311.8);
Tailwind
colors: {
  custom: {
    50: '#9860af',
    500: '#68178d',
    950: '#000000',
  },
}
SCSS
$custom: #68178d;
$custom-light: #9860af;
$custom-dark: #000000;
JSON
{
  "hex": "#68178d",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 281.186,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40366,
    "c": 0.18111,
    "h": 311.8
  },
  "luminance": 0.05479
}

Semantic roles & 50–950 ramp

primary
#68178D
secondary
#68C040
accent
#EF3972
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #68178D

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

Preview Lab → · Contrast checker → · Palette generator →

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