#7D1F98#7D1F98

#7D1F98 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.191 H 317.2°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7D1F98
RGBrgb(125, 31, 152)
HSLhsl(287, 66%, 36%)
HSVhsv(287, 80%, 60%)
CMYKcmyk(17.8%, 79.6%, 0%, 40.4%)
CIE-LABlab(33.15, 56.00, -45.97)
CIE-LCHlch(33.15, 72.45, 320.62°)
OKLaboklab(44.88% 0.1399 -0.1295)
OKLCHoklch(44.88% 0.191 317.2)
XYZxyz(14.6141, 7.6076, 30.3983)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F98 #3A981F
analogous
#411F98 #7D1F98 #981F76
triadic
#7D1F98 #987D1F #1F987D
tetradic
#7D1F98 #98411F #3A981F #1F7698
square
#7D1F98 #98411F #3A981F #1F7698
split-complementary
#7D1F98 #76981F #1F9841
monochromatic
#290A32 #531565 #7D1F98 #A729CB #BE55DC

Accessibility & contrast

On white

8.33
#7D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7D1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F98
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F98#FFFFFF#000000##FFFFFF
##7D1F981.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#215195
Tritanopia (blue-blind)
#7C3A5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1f98;
/* rgb */ color: rgb(125, 31, 152);
/* oklch */ color: oklch(44.9% 0.191 317.2);
Tailwind
colors: {
  custom: {
    50: '#a767b7',
    500: '#7d1f98',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f98;
$custom-light: #a767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f98",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 286.612,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44877,
    "c": 0.19064,
    "h": 317.2
  },
  "luminance": 0.07607
}

Semantic roles & 50–950 ramp

primary
#7D1F98
secondary
#6BC053
accent
#E93F65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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