#7D1F83#7D1F83

#7D1F83 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.173 H 325.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7D1F83
RGBrgb(125, 31, 131)
HSLhsl(296, 62%, 32%)
HSVhsv(296, 76%, 51%)
CMYKcmyk(4.6%, 76.3%, 0%, 48.6%)
CIE-LABlab(31.76, 52.04, -35.24)
CIE-LCHlch(31.76, 62.85, 325.89°)
OKLaboklab(43.45% 0.1421 -0.0981)
OKLCHoklch(43.45% 0.173 325.4)
XYZxyz(13.0439, 6.9795, 22.1285)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F83 #25831F
analogous
#4B1F83 #7D1F83 #831F57
triadic
#7D1F83 #837D1F #1F837D
tetradic
#7D1F83 #834B1F #25831F #1F5783
square
#7D1F83 #834B1F #25831F #1F5783
split-complementary
#7D1F83 #57831F #1F834B
monochromatic
#1F0820 #4E1352 #7D1F83 #AC2BB4 #CB49D4

Accessibility & contrast

On white

8.77
#7D1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F83
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F83#FFFFFF#000000##FFFFFF
##7D1F831.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#354F81
Tritanopia (blue-blind)
#803150
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1f83;
/* rgb */ color: rgb(125, 31, 131);
/* oklch */ color: oklch(43.4% 0.173 325.4);
Tailwind
colors: {
  custom: {
    50: '#a666a7',
    500: '#7d1f83',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f83;
$custom-light: #a666a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f83",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 296.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.17266,
    "h": 325.4
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#7D1F83
secondary
#4FB648
accent
#E5434D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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