#68128E#68128E

#68128E is a dark, vivid purple. Relative luminance 0.053; OKLCH L 40.1% C 0.186 H 311.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#68128E
RGBrgb(104, 18, 142)
HSLhsl(282, 78%, 31%)
HSVhsv(282, 87%, 56%)
CMYKcmyk(26.8%, 87.3%, 0%, 44.3%)
CIE-LABlab(27.65, 54.07, -48.89)
CIE-LCHlch(27.65, 72.90, 317.88°)
OKLaboklab(40.11% 0.1239 -0.1387)
OKLCHoklch(40.11% 0.186 311.8)
XYZxyz(10.8068, 5.3290, 26.0453)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68128E #388E12
analogous
#2A128E #68128E #8E1276
triadic
#68128E #8E6812 #128E68
tetradic
#68128E #8E2A12 #388E12 #12768E
square
#68128E #8E2A12 #388E12 #12768E
split-complementary
#68128E #768E12 #128E2A
monochromatic
#180421 #400B58 #68128E #9019C4 #AF35E5

Accessibility & contrast

On white

10.17
#68128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#68128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68128E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68128E#FFFFFF#000000##FFFFFF
##68128E1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#633453
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #68128e;
/* rgb */ color: rgb(104, 18, 142);
/* oklch */ color: oklch(40.1% 0.186 311.8);
Tailwind
colors: {
  custom: {
    50: '#985eb0',
    500: '#68128e',
    950: '#000000',
  },
}
SCSS
$custom: #68128e;
$custom-light: #985eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#68128e",
  "rgb": {
    "r": 104,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 281.613,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40108,
    "c": 0.18599,
    "h": 311.8
  },
  "luminance": 0.05329
}

Semantic roles & 50–950 ramp

primary
#68128E
secondary
#63C23A
accent
#F4346F
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #68128E

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

Preview Lab → · Contrast checker → · Palette generator →

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