#68178B#68178B

#68178B is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.2% C 0.179 H 312.6°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#68178B
RGBrgb(104, 23, 139)
HSLhsl(282, 72%, 32%)
HSVhsv(282, 83%, 55%)
CMYKcmyk(25.2%, 83.5%, 0%, 45.5%)
CIE-LABlab(27.90, 52.01, -46.62)
CIE-LCHlch(27.90, 69.85, 318.13°)
OKLaboklab(40.21% 0.1213 -0.1321)
OKLCHoklch(40.21% 0.179 312.6)
XYZxyz(10.6747, 5.4203, 24.9050)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68178B #3A8B17
analogous
#2E178B #68178B #8B1774
triadic
#68178B #8B6817 #178B68
tetradic
#68178B #8B2E17 #3A8B17 #17748B
square
#68178B #8B2E17 #3A8B17 #17748B
split-complementary
#68178B #748B17 #178B2E
monochromatic
#190622 #410E56 #68178B #8F20C0 #AE3DDF

Accessibility & contrast

On white

10.08
#68178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#68178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68178B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68178B#FFFFFF#000000##FFFFFF
##68178B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#643552
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68178b;
/* rgb */ color: rgb(104, 23, 139);
/* oklch */ color: oklch(40.2% 0.179 312.6);
Tailwind
colors: {
  custom: {
    50: '#9860ae',
    500: '#68178b',
    950: '#000000',
  },
}
SCSS
$custom: #68178b;
$custom-light: #9860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#68178b",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 281.897,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.17929,
    "h": 312.6
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#68178B
secondary
#66BF3F
accent
#EE3970
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #68178B

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

Preview Lab → · Contrast checker → · Palette generator →

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