#7D1270#7D1270

#7D1270 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.170 H 334.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#7D1270
RGBrgb(125, 18, 112)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 86%, 49%)
CMYKcmyk(0%, 85.6%, 10.4%, 51%)
CIE-LABlab(29.32, 52.66, -27.11)
CIE-LCHlch(29.32, 59.23, 332.76°)
OKLaboklab(41.34% 0.1531 -0.0744)
OKLCHoklch(41.34% 0.17 334.1)
XYZxyz(11.5985, 5.9635, 15.8663)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1270 #127D1F
analogous
#54127D #7D1270 #7D123A
triadic
#7D1270 #707D12 #12707D
tetradic
#7D1270 #7D5412 #127D1F #123A7D
square
#7D1270 #7D5412 #127D1F #123A7D
split-complementary
#7D1270 #3A7D12 #127D54
monochromatic
#1B0418 #480A40 #7D1270 #B21AA0 #E029CA

Accessibility & contrast

On white

9.58
#7D1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7D1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1270
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1270#FFFFFF#000000##FFFFFF
##7D12701.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3B72
Deuteranopia (green-blind)
#3B4A6E
Tritanopia (blue-blind)
#831F42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1270;
/* rgb */ color: rgb(125, 18, 112);
/* oklch */ color: oklch(41.3% 0.170 334.1);
Tailwind
colors: {
  custom: {
    50: '#a66099',
    500: '#7d1270',
    950: '#000000',
  },
}
SCSS
$custom: #7d1270;
$custom-light: #a66099;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1270",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 307.29,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.17025,
    "h": 334.1
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#7D1270
secondary
#38B347
accent
#F14D36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7D1270

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

Preview Lab → · Contrast checker → · Palette generator →

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