#68158D#68158D

#68158D is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.2% C 0.183 H 312.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#68158D
RGBrgb(104, 21, 141)
HSLhsl(282, 74%, 32%)
HSVhsv(282, 85%, 55%)
CMYKcmyk(26.2%, 85.1%, 0%, 44.7%)
CIE-LABlab(27.85, 53.04, -47.94)
CIE-LCHlch(27.85, 71.49, 317.89°)
OKLaboklab(40.22% 0.1222 -0.1359)
OKLCHoklch(40.22% 0.183 312)
XYZxyz(10.7839, 5.4028, 25.6689)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68158D #3A8D15
analogous
#2C158D #68158D #8D1576
triadic
#68158D #8D6815 #158D68
tetradic
#68158D #8D2C15 #3A8D15 #15768D
square
#68158D #8D2C15 #3A8D15 #15768D
split-complementary
#68158D #768D15 #158D2C
monochromatic
#190522 #410D58 #68158D #8F1DC2 #AE3BE2

Accessibility & contrast

On white

10.09
#68158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#68158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68158D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68158D#FFFFFF#000000##FFFFFF
##68158D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#633553
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68158d;
/* rgb */ color: rgb(104, 21, 141);
/* oklch */ color: oklch(40.2% 0.183 312.0);
Tailwind
colors: {
  custom: {
    50: '#985faf',
    500: '#68158d',
    950: '#000000',
  },
}
SCSS
$custom: #68158d;
$custom-light: #985faf;
$custom-dark: #000000;
JSON
{
  "hex": "#68158d",
  "rgb": {
    "r": 104,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 281.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40222,
    "c": 0.1828,
    "h": 312
  },
  "luminance": 0.05402
}

Semantic roles & 50–950 ramp

primary
#68158D
secondary
#66C13D
accent
#F13770
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #68158D

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

Preview Lab → · Contrast checker → · Palette generator →

#68158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva