#81279D#81279D

#81279D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.188 H 316.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#81279D
RGBrgb(129, 39, 157)
HSLhsl(286, 60%, 38%)
HSVhsv(286, 75%, 62%)
CMYKcmyk(17.8%, 75.2%, 0%, 38.4%)
CIE-LABlab(35.11, 54.99, -45.82)
CIE-LCHlch(35.11, 71.58, 320.20°)
OKLaboklab(46.5% 0.1371 -0.129)
OKLCHoklch(46.5% 0.188 316.7)
XYZxyz(15.8637, 8.5531, 32.7070)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81279D #439D27
analogous
#46279D #81279D #9D277E
triadic
#81279D #9D8127 #279D81
tetradic
#81279D #9D4627 #439D27 #277E9D
square
#81279D #9D4627 #439D27 #277E9D
split-complementary
#81279D #7E9D27 #279D46
monochromatic
#300F3B #591B6C #81279D #A935CD #BE66D9

Accessibility & contrast

On white

7.75
#81279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#81279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81279D
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81279D#FFFFFF#000000##FFFFFF
##81279D1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#28559A
Tritanopia (blue-blind)
#7F4060
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #81279d;
/* rgb */ color: rgb(129, 39, 157);
/* oklch */ color: oklch(46.5% 0.188 316.7);
Tailwind
colors: {
  custom: {
    50: '#a96bbb',
    500: '#81279d',
    950: '#000000',
  },
}
SCSS
$custom: #81279d;
$custom-light: #a96bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#81279d",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 285.763,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46498,
    "c": 0.18823,
    "h": 316.7
  },
  "luminance": 0.08552
}

Semantic roles & 50–950 ramp

primary
#81279D
secondary
#77BF61
accent
#E3446A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #81279D

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

Preview Lab → · Contrast checker → · Palette generator →

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