#68158A#68158A

#68158A is a dark, vivid purple. Relative luminance 0.053; OKLCH L 40.0% C 0.180 H 313.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#68158A
RGBrgb(104, 21, 138)
HSLhsl(283, 74%, 31%)
HSVhsv(283, 85%, 54%)
CMYKcmyk(24.6%, 84.8%, 0%, 45.9%)
CIE-LABlab(27.61, 52.41, -46.47)
CIE-LCHlch(27.61, 70.04, 318.44°)
OKLaboklab(39.98% 0.123 -0.1316)
OKLCHoklch(39.98% 0.18 313.1)
XYZxyz(10.5637, 5.3147, 24.5092)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68158A #378A15
analogous
#2D158A #68158A #8A1571
triadic
#68158A #8A6815 #158A68
tetradic
#68158A #8A2D15 #378A15 #15718A
square
#68158A #8A2D15 #378A15 #15718A
split-complementary
#68158A #718A15 #158A2D
monochromatic
#180520 #400D55 #68158A #901DBF #B039E1

Accessibility & contrast

On white

10.18
#68158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#68158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68158A
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68158A#FFFFFF#000000##FFFFFF
##68158A1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#643351
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #68158a;
/* rgb */ color: rgb(104, 21, 138);
/* oklch */ color: oklch(40.0% 0.180 313.1);
Tailwind
colors: {
  custom: {
    50: '#985fad',
    500: '#68158a',
    950: '#000000',
  },
}
SCSS
$custom: #68158a;
$custom-light: #985fad;
$custom-dark: #000000;
JSON
{
  "hex": "#68158a",
  "rgb": {
    "r": 104,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 282.564,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3998,
    "c": 0.18011,
    "h": 313.1
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#68158A
secondary
#62BE3D
accent
#F0386D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #68158A

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

Preview Lab → · Contrast checker → · Palette generator →

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