#7D18A7#7D18A7

#7D18A7 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.5% C 0.209 H 312.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7D18A7
RGBrgb(125, 24, 167)
HSLhsl(282, 75%, 37%)
HSVhsv(282, 86%, 65%)
CMYKcmyk(25.1%, 85.6%, 0%, 34.5%)
CIE-LABlab(33.57, 61.01, -54.38)
CIE-LCHlch(33.57, 81.73, 318.29°)
OKLaboklab(45.52% 0.1418 -0.1541)
OKLCHoklch(45.52% 0.209 312.6)
XYZxyz(15.7579, 7.8037, 37.2279)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D18A7 #42A718
analogous
#3618A7 #7D18A7 #A71889
triadic
#7D18A7 #A77D18 #18A77D
tetradic
#7D18A7 #A73618 #42A718 #1889A7
square
#7D18A7 #A73618 #42A718 #1889A7
split-complementary
#7D18A7 #89A718 #18A736
monochromatic
#2D093C #551071 #7D18A7 #A520DD #BB53E6

Accessibility & contrast

On white

8.20
#7D18A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7D18A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D18A7
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D18A7#FFFFFF#000000##FFFFFF
##7D18A71.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#783F63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d18a7;
/* rgb */ color: rgb(125, 24, 167);
/* oklch */ color: oklch(45.5% 0.209 312.6);
Tailwind
colors: {
  custom: {
    50: '#a865c2',
    500: '#7d18a7',
    950: '#000000',
  },
}
SCSS
$custom: #7d18a7;
$custom-light: #a865c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d18a7",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 167
  },
  "hsl": {
    "h": 282.378,
    "s": 74.869,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45521,
    "c": 0.20946,
    "h": 312.6
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#7D18A7
secondary
#75C952
accent
#F1366D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D18A7

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

Preview Lab → · Contrast checker → · Palette generator →

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