#68217F#68217F

#68217F is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.2% C 0.157 H 316.5°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#68217F
RGBrgb(104, 33, 127)
HSLhsl(285, 59%, 31%)
HSVhsv(285, 74%, 50%)
CMYKcmyk(18.1%, 74%, 0%, 50.2%)
CIE-LABlab(28.28, 45.82, -38.50)
CIE-LCHlch(28.28, 59.84, 319.96°)
OKLaboklab(40.2% 0.1142 -0.1083)
OKLCHoklch(40.2% 0.157 316.5)
XYZxyz(10.0830, 5.5635, 20.6173)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68217F #387F21
analogous
#39217F #68217F #7F2167
triadic
#68217F #7F6821 #217F68
tetradic
#68217F #7F3921 #387F21 #21677F
square
#68217F #7F3921 #387F21 #21677F
split-complementary
#68217F #677F21 #217F39
monochromatic
#18081E #40144E #68217F #902EB0 #AF4AD0

Accessibility & contrast

On white

9.94
#68217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #68217F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68217F#FFFFFF#000000##FFFFFF
##68217F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#21457D
Tritanopia (blue-blind)
#67344E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #68217f;
/* rgb */ color: rgb(104, 33, 127);
/* oklch */ color: oklch(40.2% 0.157 316.5);
Tailwind
colors: {
  custom: {
    50: '#9664a5',
    500: '#68217f',
    950: '#000000',
  },
}
SCSS
$custom: #68217f;
$custom-light: #9664a5;
$custom-dark: #000000;
JSON
{
  "hex": "#68217f",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 285.319,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40195,
    "c": 0.15737,
    "h": 316.5
  },
  "luminance": 0.05563
}

Semantic roles & 50–950 ramp

primary
#68217F
secondary
#63B24A
accent
#E2466C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #68217F

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

Preview Lab → · Contrast checker → · Palette generator →

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