#68178F#68178F

#68178F is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.5% C 0.183 H 311.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#68178F
RGBrgb(104, 23, 143)
HSLhsl(281, 72%, 33%)
HSVhsv(281, 84%, 56%)
CMYKcmyk(27.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(28.22, 52.86, -48.59)
CIE-LCHlch(28.22, 71.80, 317.41°)
OKLaboklab(40.53% 0.1203 -0.1378)
OKLCHoklch(40.53% 0.183 311.1)
XYZxyz(10.9723, 5.5393, 26.4725)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68178F #3E8F17
analogous
#2C178F #68178F #8F177A
triadic
#68178F #8F6817 #178F68
tetradic
#68178F #8F2C17 #3E8F17 #177A8F
square
#68178F #8F2C17 #3E8F17 #177A8F
split-complementary
#68178F #7A8F17 #178F2C
monochromatic
#1B0626 #420F5A #68178F #8E1FC4 #AC40E0

Accessibility & contrast

On white

9.96
#68178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#68178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68178F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68178F#FFFFFF#000000##FFFFFF
##68178F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#633755
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #68178f;
/* rgb */ color: rgb(104, 23, 143);
/* oklch */ color: oklch(40.5% 0.183 311.1);
Tailwind
colors: {
  custom: {
    50: '#9860b1',
    500: '#68178f',
    950: '#000000',
  },
}
SCSS
$custom: #68178f;
$custom-light: #9860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#68178f",
  "rgb": {
    "r": 104,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 280.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40528,
    "c": 0.18293,
    "h": 311.1
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#68178F
secondary
#6BC141
accent
#EF3974
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #68178F

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

Preview Lab → · Contrast checker → · Palette generator →

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