#7D18A5#7D18A5

#7D18A5 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.4% C 0.208 H 313.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7D18A5
RGBrgb(125, 24, 165)
HSLhsl(283, 75%, 37%)
HSVhsv(283, 85%, 65%)
CMYKcmyk(24.2%, 85.5%, 0%, 35.3%)
CIE-LABlab(33.41, 60.61, -53.43)
CIE-LCHlch(33.41, 80.80, 318.60°)
OKLaboklab(45.36% 0.1423 -0.1514)
OKLCHoklch(45.36% 0.208 313.2)
XYZxyz(15.5744, 7.7304, 36.2617)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D18A5 #40A518
analogous
#3718A5 #7D18A5 #A51886
triadic
#7D18A5 #A57D18 #18A57D
tetradic
#7D18A5 #A53718 #40A518 #1886A5
square
#7D18A5 #A53718 #40A518 #1886A5
split-complementary
#7D18A5 #86A518 #18A537
monochromatic
#2C083A #551070 #7D18A5 #A520DA #BC52E6

Accessibility & contrast

On white

8.25
#7D18A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D18A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D18A5
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D18A5#FFFFFF#000000##FFFFFF
##7D18A51.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#793E62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d18a5;
/* rgb */ color: rgb(125, 24, 165);
/* oklch */ color: oklch(45.4% 0.208 313.2);
Tailwind
colors: {
  custom: {
    50: '#a865c1',
    500: '#7d18a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d18a5;
$custom-light: #a865c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d18a5",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 165
  },
  "hsl": {
    "h": 282.979,
    "s": 74.603,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45364,
    "c": 0.20777,
    "h": 313.2
  },
  "luminance": 0.0773
}

Semantic roles & 50–950 ramp

primary
#7D18A5
secondary
#73C851
accent
#F1376C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D18A5

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

Preview Lab → · Contrast checker → · Palette generator →

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