#68158F#68158F

#68158F is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.185 H 311.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#68158F
RGBrgb(104, 21, 143)
HSLhsl(281, 74%, 32%)
HSVhsv(281, 85%, 56%)
CMYKcmyk(27.3%, 85.3%, 0%, 43.9%)
CIE-LABlab(28.01, 53.46, -48.92)
CIE-LCHlch(28.01, 72.46, 317.54°)
OKLaboklab(40.39% 0.1217 -0.1388)
OKLCHoklch(40.39% 0.185 311.2)
XYZxyz(10.9341, 5.4628, 26.4597)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68158F #3C8F15
analogous
#2B158F #68158F #8F1579
triadic
#68158F #8F6815 #158F68
tetradic
#68158F #8F2B15 #3C8F15 #15798F
square
#68158F #8F2B15 #3C8F15 #15798F
split-complementary
#68158F #798F15 #158F2B
monochromatic
#1A0524 #410D5A #68158F #8F1DC4 #AD3CE2

Accessibility & contrast

On white

10.04
#68158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#68158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68158F
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68158F#FFFFFF#000000##FFFFFF
##68158F1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#633654
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68158f;
/* rgb */ color: rgb(104, 21, 143);
/* oklch */ color: oklch(40.4% 0.185 311.2);
Tailwind
colors: {
  custom: {
    50: '#985fb1',
    500: '#68158f',
    950: '#000000',
  },
}
SCSS
$custom: #68158f;
$custom-light: #985fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#68158f",
  "rgb": {
    "r": 104,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 280.82,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.18459,
    "h": 311.2
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#68158F
secondary
#68C23E
accent
#F13772
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #68158F

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

Preview Lab → · Contrast checker → · Palette generator →

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