#68187F#68187F

#68187F is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.4% C 0.168 H 317.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#68187F
RGBrgb(104, 24, 127)
HSLhsl(287, 68%, 30%)
HSVhsv(287, 81%, 50%)
CMYKcmyk(18.1%, 81.1%, 0%, 50.2%)
CIE-LABlab(27.10, 49.21, -40.40)
CIE-LCHlch(27.10, 63.67, 320.61°)
OKLaboklab(39.36% 0.1229 -0.1138)
OKLCHoklch(39.36% 0.168 317.2)
XYZxyz(9.8658, 5.1291, 20.5449)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68187F #2F7F18
analogous
#35187F #68187F #7F1863
triadic
#68187F #7F6818 #187F68
tetradic
#68187F #7F3518 #2F7F18 #18637F
square
#68187F #7F3518 #2F7F18 #18637F
split-complementary
#68187F #637F18 #187F35
monochromatic
#15051A #3E0E4C #68187F #9222B2 #B538D9

Accessibility & contrast

On white

10.37
#68187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#68187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68187F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68187F#FFFFFF#000000##FFFFFF
##68187F1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#1A427D
Tritanopia (blue-blind)
#672F4C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #68187f;
/* rgb */ color: rgb(104, 24, 127);
/* oklch */ color: oklch(39.4% 0.168 317.2);
Tailwind
colors: {
  custom: {
    50: '#9760a5',
    500: '#68187f',
    950: '#000000',
  },
}
SCSS
$custom: #68187f;
$custom-light: #9760a5;
$custom-dark: #000000;
JSON
{
  "hex": "#68187f",
  "rgb": {
    "r": 104,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 286.602,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39356,
    "c": 0.1675,
    "h": 317.2
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#68187F
secondary
#59B33F
accent
#EB3D64
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #68187F

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

Preview Lab → · Contrast checker → · Palette generator →

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