#7B1F82#7B1F82

#7B1F82 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.171 H 324.9°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7B1F82
RGBrgb(123, 31, 130)
HSLhsl(296, 61%, 32%)
HSVhsv(296, 76%, 51%)
CMYKcmyk(5.4%, 76.2%, 0%, 49%)
CIE-LABlab(31.36, 51.42, -35.28)
CIE-LCHlch(31.36, 62.36, 325.54°)
OKLaboklab(43.07% 0.1398 -0.0983)
OKLCHoklch(43.07% 0.171 324.9)
XYZxyz(12.6873, 6.8035, 21.7597)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F82 #26821F
analogous
#4A1F82 #7B1F82 #821F58
triadic
#7B1F82 #827B1F #1F827B
tetradic
#7B1F82 #824A1F #26821F #1F5882
square
#7B1F82 #824A1F #26821F #1F5882
split-complementary
#7B1F82 #58821F #1F824A
monochromatic
#1D071F #4C1351 #7B1F82 #AA2BB3 #CA48D3

Accessibility & contrast

On white

8.90
#7B1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7B1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F82
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F82#FFFFFF#000000##FFFFFF
##7B1F821.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#334E80
Tritanopia (blue-blind)
#7E314F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b1f82;
/* rgb */ color: rgb(123, 31, 130);
/* oklch */ color: oklch(43.1% 0.171 324.9);
Tailwind
colors: {
  custom: {
    50: '#a565a7',
    500: '#7b1f82',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f82;
$custom-light: #a565a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f82",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 295.758,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43071,
    "c": 0.17087,
    "h": 324.9
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#7B1F82
secondary
#50B548
accent
#E5434F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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