#7817A1#7817A1

#7817A1 is a dark, highly saturated purple. Relative luminance 0.072; OKLCH L 44.3% C 0.204 H 312.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7817A1
RGBrgb(120, 23, 161)
HSLhsl(282, 75%, 36%)
HSVhsv(282, 86%, 63%)
CMYKcmyk(25.5%, 85.7%, 0%, 36.9%)
CIE-LABlab(32.21, 59.26, -53.01)
CIE-LCHlch(32.21, 79.50, 318.19°)
OKLaboklab(44.27% 0.1374 -0.1503)
OKLCHoklch(44.27% 0.204 312.4)
XYZxyz(14.4840, 7.1795, 34.3341)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7817A1 #40A117
analogous
#3317A1 #7817A1 #A11785
triadic
#7817A1 #A17817 #17A178
tetradic
#7817A1 #A13317 #40A117 #1785A1
square
#7817A1 #A13317 #40A117 #1785A1
split-complementary
#7817A1 #85A117 #17A133
monochromatic
#280836 #500F6B #7817A1 #A01FD7 #B84DE6

Accessibility & contrast

On white

8.62
#7817A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7817A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7817A1
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7817A1#FFFFFF#000000##FFFFFF
##7817A11.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#004E9E
Tritanopia (blue-blind)
#733C5F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7817a1;
/* rgb */ color: rgb(120, 23, 161);
/* oklch */ color: oklch(44.3% 0.204 312.4);
Tailwind
colors: {
  custom: {
    50: '#a464be',
    500: '#7817a1',
    950: '#000000',
  },
}
SCSS
$custom: #7817a1;
$custom-light: #a464be;
$custom-dark: #000000;
JSON
{
  "hex": "#7817a1",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 282.174,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4427,
    "c": 0.20358,
    "h": 312.4
  },
  "luminance": 0.07179
}

Semantic roles & 50–950 ramp

primary
#7817A1
secondary
#71C74C
accent
#F2366E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7817A1

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

Preview Lab → · Contrast checker → · Palette generator →

#7817A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva