#68178C#68178C

#68178C is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.3% C 0.180 H 312.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#68178C
RGBrgb(104, 23, 140)
HSLhsl(282, 72%, 32%)
HSVhsv(282, 84%, 55%)
CMYKcmyk(25.7%, 83.6%, 0%, 45.1%)
CIE-LABlab(27.98, 52.22, -47.12)
CIE-LCHlch(27.98, 70.34, 317.94°)
OKLaboklab(40.28% 0.121 -0.1335)
OKLCHoklch(40.28% 0.18 312.2)
XYZxyz(10.7481, 5.4496, 25.2916)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68178C #3B8C17
analogous
#2D178C #68178C #8C1776
triadic
#68178C #8C6817 #178C68
tetradic
#68178C #8C2D17 #3B8C17 #17768C
square
#68178C #8C2D17 #3B8C17 #17768C
split-complementary
#68178C #768C17 #178C2D
monochromatic
#1A0623 #410E57 #68178C #8F20C1 #AE3EDF

Accessibility & contrast

On white

10.05
#68178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#68178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68178C
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68178C#FFFFFF#000000##FFFFFF
##68178C1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #68178c;
/* rgb */ color: rgb(104, 23, 140);
/* oklch */ color: oklch(40.3% 0.180 312.2);
Tailwind
colors: {
  custom: {
    50: '#9860ae',
    500: '#68178c',
    950: '#000000',
  },
}
SCSS
$custom: #68178c;
$custom-light: #9860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#68178c",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 281.538,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40285,
    "c": 0.1802,
    "h": 312.2
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#68178C
secondary
#67BF3F
accent
#EF3971
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #68178C

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

Preview Lab → · Contrast checker → · Palette generator →

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