#7D18A1#7D18A1

#7D18A1 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.204 H 314.5°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7D18A1
RGBrgb(125, 24, 161)
HSLhsl(284, 74%, 36%)
HSVhsv(284, 85%, 63%)
CMYKcmyk(22.4%, 85.1%, 0%, 36.9%)
CIE-LABlab(33.11, 59.82, -51.51)
CIE-LCHlch(33.11, 78.95, 319.27°)
OKLaboklab(45.05% 0.1433 -0.1457)
OKLCHoklch(45.05% 0.204 314.5)
XYZxyz(15.2160, 7.5870, 34.3742)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D18A1 #3CA118
analogous
#3918A1 #7D18A1 #A11881
triadic
#7D18A1 #A17D18 #18A17D
tetradic
#7D18A1 #A13918 #3CA118 #1881A1
square
#7D18A1 #A13918 #3CA118 #1881A1
split-complementary
#7D18A1 #81A118 #18A139
monochromatic
#2A0836 #54106C #7D18A1 #A620D6 #BD4FE5

Accessibility & contrast

On white

8.34
#7D18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D18A1
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D18A1#FFFFFF#000000##FFFFFF
##7D18A11.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#06509E
Tritanopia (blue-blind)
#7A3C5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d18a1;
/* rgb */ color: rgb(125, 24, 161);
/* oklch */ color: oklch(45.1% 0.204 314.5);
Tailwind
colors: {
  custom: {
    50: '#a765be',
    500: '#7d18a1',
    950: '#000000',
  },
}
SCSS
$custom: #7d18a1;
$custom-light: #a765be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d18a1",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 284.234,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45054,
    "c": 0.20438,
    "h": 314.5
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#7D18A1
secondary
#6EC74E
accent
#F13768
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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