#68178E#68178E

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

Color values

HEX#68178E
RGBrgb(104, 23, 142)
HSLhsl(281, 72%, 32%)
HSVhsv(281, 84%, 56%)
CMYKcmyk(26.8%, 83.8%, 0%, 44.3%)
CIE-LABlab(28.14, 52.65, -48.10)
CIE-LCHlch(28.14, 71.31, 317.58°)
OKLaboklab(40.45% 0.1205 -0.1364)
OKLCHoklch(40.45% 0.182 311.5)
XYZxyz(10.8969, 5.5091, 26.0753)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68178E #3D8E17
analogous
#2C178E #68178E #8E1779
triadic
#68178E #8E6817 #178E68
tetradic
#68178E #8E2C17 #3D8E17 #17798E
square
#68178E #8E2C17 #3D8E17 #17798E
split-complementary
#68178E #798E17 #178E2C
monochromatic
#1B0625 #410E59 #68178E #8F20C3 #AD3FE0

Accessibility & contrast

On white

9.99
#68178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #68178E
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68178E#FFFFFF#000000##FFFFFF
##68178E1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#633654
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68178e;
/* rgb */ color: rgb(104, 23, 142);
/* oklch */ color: oklch(40.4% 0.182 311.5);
Tailwind
colors: {
  custom: {
    50: '#9860b0',
    500: '#68178e',
    950: '#000000',
  },
}
SCSS
$custom: #68178e;
$custom-light: #9860b0;
$custom-dark: #000000;
JSON
{
  "hex": "#68178e",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 280.84,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.18202,
    "h": 311.5
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#68178E
secondary
#69C040
accent
#EF3973
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #68178E

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

Preview Lab → · Contrast checker → · Palette generator →

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