#7B1E81#7B1E81

#7B1E81 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.171 H 325.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7B1E81
RGBrgb(123, 30, 129)
HSLhsl(296, 62%, 31%)
HSVhsv(296, 77%, 51%)
CMYKcmyk(4.7%, 76.7%, 0%, 49.4%)
CIE-LABlab(31.17, 51.58, -34.95)
CIE-LCHlch(31.17, 62.30, 325.88°)
OKLaboklab(42.92% 0.1408 -0.0973)
OKLCHoklch(42.92% 0.171 325.4)
XYZxyz(12.5948, 6.7253, 21.3994)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E81 #24811E
analogous
#491E81 #7B1E81 #811E55
triadic
#7B1E81 #817B1E #1E817B
tetradic
#7B1E81 #81491E #24811E #1E5581
square
#7B1E81 #81491E #24811E #1E5581
split-complementary
#7B1E81 #55811E #1E8149
monochromatic
#1C071E #4C124F #7B1E81 #AA2AB3 #CB46D4

Accessibility & contrast

On white

8.96
#7B1E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B1E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1E81
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E81#FFFFFF#000000##FFFFFF
##7B1E811.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#344D7F
Tritanopia (blue-blind)
#7E2F4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1e81;
/* rgb */ color: rgb(123, 30, 129);
/* oklch */ color: oklch(42.9% 0.171 325.4);
Tailwind
colors: {
  custom: {
    50: '#a565a6',
    500: '#7b1e81',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e81;
$custom-light: #a565a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e81",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 296.364,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42921,
    "c": 0.17112,
    "h": 325.4
  },
  "luminance": 0.06724
}

Semantic roles & 50–950 ramp

primary
#7B1E81
secondary
#4DB447
accent
#E5424C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1E81

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

Preview Lab → · Contrast checker → · Palette generator →

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