#7D1273#7D1273

#7D1273 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.172 H 332.7°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7D1273
RGBrgb(125, 18, 115)
HSLhsl(306, 75%, 28%)
HSVhsv(306, 86%, 49%)
CMYKcmyk(0%, 85.6%, 8%, 51%)
CIE-LABlab(29.49, 53.12, -28.75)
CIE-LCHlch(29.49, 60.41, 331.58°)
OKLaboklab(41.52% 0.1532 -0.0791)
OKLCHoklch(41.52% 0.172 332.7)
XYZxyz(11.7683, 6.0314, 16.7607)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1273 #127D1C
analogous
#51127D #7D1273 #7D123E
triadic
#7D1273 #737D12 #12737D
tetradic
#7D1273 #7D5112 #127D1C #123E7D
square
#7D1273 #7D5112 #127D1C #123E7D
split-complementary
#7D1273 #3E7D12 #127D51
monochromatic
#1B0419 #480A42 #7D1273 #B21AA4 #E029CF

Accessibility & contrast

On white

9.52
#7D1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7D1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1273
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1273#FFFFFF#000000##FFFFFF
##7D12731.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083C75
Deuteranopia (green-blind)
#394B71
Tritanopia (blue-blind)
#832144
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1273;
/* rgb */ color: rgb(125, 18, 115);
/* oklch */ color: oklch(41.5% 0.172 332.7);
Tailwind
colors: {
  custom: {
    50: '#a6609b',
    500: '#7d1273',
    950: '#000000',
  },
}
SCSS
$custom: #7d1273;
$custom-light: #a6609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1273",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 305.607,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41521,
    "c": 0.17242,
    "h": 332.7
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#7D1273
secondary
#38B343
accent
#F14836
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1273

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

Preview Lab → · Contrast checker → · Palette generator →

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