#7B1F8A#7B1F8A

#7B1F8A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.178 H 321.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7B1F8A
RGBrgb(123, 31, 138)
HSLhsl(292, 63%, 33%)
HSVhsv(292, 78%, 54%)
CMYKcmyk(10.9%, 77.5%, 0%, 45.9%)
CIE-LABlab(31.87, 52.90, -39.44)
CIE-LCHlch(31.87, 65.99, 323.29°)
OKLaboklab(43.6% 0.1392 -0.1104)
OKLCHoklch(43.6% 0.178 321.6)
XYZxyz(13.2453, 7.0266, 24.6984)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F8A #2E8A1F
analogous
#451F8A #7B1F8A #8A1F63
triadic
#7B1F8A #8A7B1F #1F8A7B
tetradic
#7B1F8A #8A451F #2E8A1F #1F638A
square
#7B1F8A #8A451F #2E8A1F #1F638A
split-complementary
#7B1F8A #638A1F #1F8A45
monochromatic
#220926 #4E1458 #7B1F8A #A82ABC #C34CD7

Accessibility & contrast

On white

8.73
#7B1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7B1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F8A
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F8A#FFFFFF#000000##FFFFFF
##7B1F8A1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#2D4E88
Tritanopia (blue-blind)
#7C3454
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1f8a;
/* rgb */ color: rgb(123, 31, 138);
/* oklch */ color: oklch(43.6% 0.178 321.6);
Tailwind
colors: {
  custom: {
    50: '#a566ad',
    500: '#7b1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f8a;
$custom-light: #a566ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f8a",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 291.589,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43599,
    "c": 0.17769,
    "h": 321.6
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

primary
#7B1F8A
secondary
#5BBA4B
accent
#E64159
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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