#7818A0#7818A0

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

Color values

HEX#7818A0
RGBrgb(120, 24, 160)
HSLhsl(282, 74%, 36%)
HSVhsv(282, 85%, 63%)
CMYKcmyk(25%, 85%, 0%, 37.3%)
CIE-LABlab(32.22, 58.79, -52.38)
CIE-LCHlch(32.22, 78.74, 318.30°)
OKLaboklab(44.25% 0.137 -0.1484)
OKLCHoklch(44.25% 0.202 312.7)
XYZxyz(14.4164, 7.1848, 33.8783)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7818A0 #40A018
analogous
#3418A0 #7818A0 #A01884
triadic
#7818A0 #A07818 #18A078
tetradic
#7818A0 #A03418 #40A018 #1884A0
square
#7818A0 #A03418 #40A018 #1884A0
split-complementary
#7818A0 #84A018 #18A034
monochromatic
#280836 #50106B #7818A0 #A020D5 #B84EE4

Accessibility & contrast

On white

8.62
#7818A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7818A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7818A0
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7818A0#FFFFFF#000000##FFFFFF
##7818A01.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)
#0047A3
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#733C5F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7818a0;
/* rgb */ color: rgb(120, 24, 160);
/* oklch */ color: oklch(44.3% 0.202 312.7);
Tailwind
colors: {
  custom: {
    50: '#a464bd',
    500: '#7818a0',
    950: '#000000',
  },
}
SCSS
$custom: #7818a0;
$custom-light: #a464bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7818a0",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 282.353,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44253,
    "c": 0.20197,
    "h": 312.7
  },
  "luminance": 0.07184
}

Semantic roles & 50–950 ramp

primary
#7818A0
secondary
#71C64D
accent
#F1376E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7818A0

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

Preview Lab → · Contrast checker → · Palette generator →

#7818A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva