#7D1974#7D1974

#7D1974 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.167 H 332.2°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7D1974
RGBrgb(125, 25, 116)
HSLhsl(305, 67%, 29%)
HSVhsv(305, 80%, 49%)
CMYKcmyk(0%, 80%, 7.2%, 51%)
CIE-LABlab(30.20, 51.40, -28.27)
CIE-LCHlch(30.20, 58.66, 331.19°)
OKLaboklab(42.04% 0.1477 -0.0778)
OKLCHoklch(42.04% 0.167 332.2)
XYZxyz(11.9575, 6.3172, 17.1092)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1974 #197D22
analogous
#54197D #7D1974 #7D1942
triadic
#7D1974 #747D19 #19747D
tetradic
#7D1974 #7D5419 #197D22 #19427D
square
#7D1974 #7D5419 #197D22 #19427D
split-complementary
#7D1974 #427D19 #197D54
monochromatic
#1A0518 #4A0F45 #7D1974 #B023A3 #D739C9

Accessibility & contrast

On white

9.28
#7D1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7D1974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1974
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1974#FFFFFF#000000##FFFFFF
##7D19741.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113E76
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#832546
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1974;
/* rgb */ color: rgb(125, 25, 116);
/* oklch */ color: oklch(42.0% 0.167 332.2);
Tailwind
colors: {
  custom: {
    50: '#a6639c',
    500: '#7d1974',
    950: '#000000',
  },
}
SCSS
$custom: #7d1974;
$custom-light: #a6639c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1974",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 305.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42044,
    "c": 0.16695,
    "h": 332.2
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#7D1974
secondary
#40B14B
accent
#EA4E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1974

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

Preview Lab → · Contrast checker → · Palette generator →

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