#7D18A8#7D18A8

#7D18A8 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.6% C 0.210 H 312.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7D18A8
RGBrgb(125, 24, 168)
HSLhsl(282, 75%, 38%)
HSVhsv(282, 86%, 66%)
CMYKcmyk(25.6%, 85.7%, 0%, 34.1%)
CIE-LABlab(33.65, 61.21, -54.86)
CIE-LCHlch(33.65, 82.20, 318.13°)
OKLaboklab(45.6% 0.1416 -0.1555)
OKLCHoklch(45.6% 0.21 312.3)
XYZxyz(15.8507, 7.8409, 37.7167)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D18A8 #43A818
analogous
#3518A8 #7D18A8 #A8188B
triadic
#7D18A8 #A87D18 #18A87D
tetradic
#7D18A8 #A83518 #43A818 #188BA8
square
#7D18A8 #A83518 #43A818 #188BA8
split-complementary
#7D18A8 #8BA818 #18A835
monochromatic
#2D093D #551072 #7D18A8 #A520DE #BB54E7

Accessibility & contrast

On white

8.18
#7D18A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D18A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D18A8
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D18A8#FFFFFF#000000##FFFFFF
##7D18A81.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#783F64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d18a8;
/* rgb */ color: rgb(125, 24, 168);
/* oklch */ color: oklch(45.6% 0.210 312.3);
Tailwind
colors: {
  custom: {
    50: '#a865c3',
    500: '#7d18a8',
    950: '#000000',
  },
}
SCSS
$custom: #7d18a8;
$custom-light: #a865c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d18a8",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 282.083,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.456,
    "c": 0.21031,
    "h": 312.3
  },
  "luminance": 0.0784
}

Semantic roles & 50–950 ramp

primary
#7D18A8
secondary
#76C953
accent
#F2366E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7D18A8

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

Preview Lab → · Contrast checker → · Palette generator →

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