#7A18A8#7A18A8

#7A18A8 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.2% C 0.209 H 311.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7A18A8
RGBrgb(122, 24, 168)
HSLhsl(281, 75%, 38%)
HSVhsv(281, 86%, 66%)
CMYKcmyk(27.4%, 85.7%, 0%, 34.1%)
CIE-LABlab(33.18, 60.73, -55.65)
CIE-LCHlch(33.18, 82.37, 317.50°)
OKLaboklab(45.18% 0.1375 -0.158)
OKLCHoklch(45.18% 0.209 311)
XYZxyz(15.4192, 7.6184, 37.6964)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A18A8 #46A818
analogous
#3218A8 #7A18A8 #A8188E
triadic
#7A18A8 #A87A18 #18A87A
tetradic
#7A18A8 #A83218 #46A818 #188EA8
square
#7A18A8 #A83218 #46A818 #188EA8
split-complementary
#7A18A8 #8EA818 #18A832
monochromatic
#2C093D #531072 #7A18A8 #A120DE #B854E7

Accessibility & contrast

On white

8.32
#7A18A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7A18A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A18A8
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A18A8#FFFFFF#000000##FFFFFF
##7A18A81.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#744064
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a18a8;
/* rgb */ color: rgb(122, 24, 168);
/* oklch */ color: oklch(45.2% 0.209 311.0);
Tailwind
colors: {
  custom: {
    50: '#a665c3',
    500: '#7a18a8',
    950: '#000000',
  },
}
SCSS
$custom: #7a18a8;
$custom-light: #a665c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a18a8",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 280.833,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45176,
    "c": 0.20946,
    "h": 311
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#7A18A8
secondary
#78C953
accent
#F23672
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7A18A8

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

Preview Lab → · Contrast checker → · Palette generator →

#7A18A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva