#7B1F7D#7B1F7D

#7B1F7D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.167 H 327.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7B1F7D
RGBrgb(123, 31, 125)
HSLhsl(299, 60%, 31%)
HSVhsv(299, 75%, 49%)
CMYKcmyk(1.6%, 75.2%, 0%, 51%)
CIE-LABlab(31.05, 50.52, -32.64)
CIE-LCHlch(31.05, 60.14, 327.14°)
OKLaboklab(42.75% 0.1399 -0.0906)
OKLCHoklch(42.75% 0.167 327.1)
XYZxyz(12.3598, 6.6725, 20.0350)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F7D #217D1F
analogous
#4C1F7D #7B1F7D #7D1F50
triadic
#7B1F7D #7D7B1F #1F7D7B
tetradic
#7B1F7D #7D4C1F #217D1F #1F507D
square
#7B1F7D #7D4C1F #217D1F #1F507D
split-complementary
#7B1F7D #507D1F #1F7D4C
monochromatic
#1A071B #4B134C #7B1F7D #AB2BAE #CE45D1

Accessibility & contrast

On white

9.00
#7B1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F7D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F7D#FFFFFF#000000##FFFFFF
##7B1F7D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084280
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#7F2E4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1f7d;
/* rgb */ color: rgb(123, 31, 125);
/* oklch */ color: oklch(42.8% 0.167 327.1);
Tailwind
colors: {
  custom: {
    50: '#a465a3',
    500: '#7b1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f7d;
$custom-light: #a465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f7d",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 298.723,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.16669,
    "h": 327.1
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#7B1F7D
secondary
#4AB048
accent
#E34448
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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