#7D1F8B#7D1F8B

#7D1F8B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.179 H 322.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7D1F8B
RGBrgb(125, 31, 139)
HSLhsl(292, 64%, 33%)
HSVhsv(292, 78%, 55%)
CMYKcmyk(10.1%, 77.7%, 0%, 45.5%)
CIE-LABlab(32.27, 53.51, -39.40)
CIE-LCHlch(32.27, 66.45, 323.63°)
OKLaboklab(43.97% 0.1416 -0.1102)
OKLCHoklch(43.97% 0.179 322.1)
XYZxyz(13.6071, 7.2048, 25.0950)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F8B #2D8B1F
analogous
#471F8B #7D1F8B #8B1F63
triadic
#7D1F8B #8B7D1F #1F8B7D
tetradic
#7D1F8B #8B471F #2D8B1F #1F638B
square
#7D1F8B #8B471F #2D8B1F #1F638B
split-complementary
#7D1F8B #638B1F #1F8B47
monochromatic
#230927 #501459 #7D1F8B #AA2ABD #C54DD7

Accessibility & contrast

On white

8.60
#7D1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7D1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F8B
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F8B#FFFFFF#000000##FFFFFF
##7D1F8B1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2F4F89
Tritanopia (blue-blind)
#7E3454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d1f8b;
/* rgb */ color: rgb(125, 31, 139);
/* oklch */ color: oklch(44.0% 0.179 322.1);
Tailwind
colors: {
  custom: {
    50: '#a666ad',
    500: '#7d1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f8b;
$custom-light: #a666ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f8b",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 292.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43971,
    "c": 0.17942,
    "h": 322.1
  },
  "luminance": 0.07204
}

Semantic roles & 50–950 ramp

primary
#7D1F8B
secondary
#5ABA4C
accent
#E74157
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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