#7B1881#7B1881

#7B1881 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.5% C 0.177 H 325.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7B1881
RGBrgb(123, 24, 129)
HSLhsl(297, 69%, 30%)
HSVhsv(297, 81%, 51%)
CMYKcmyk(4.7%, 81.4%, 0%, 49.4%)
CIE-LABlab(30.52, 53.46, -35.99)
CIE-LCHlch(30.52, 64.44, 326.05°)
OKLaboklab(42.46% 0.146 -0.1003)
OKLCHoklch(42.46% 0.177 325.5)
XYZxyz(12.4572, 6.4501, 21.3535)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1881 #1E8118
analogous
#461881 #7B1881 #811853
triadic
#7B1881 #817B18 #18817B
tetradic
#7B1881 #814618 #1E8118 #185381
square
#7B1881 #814618 #1E8118 #185381
split-complementary
#7B1881 #538118 #188146
monochromatic
#19051A #4A0E4D #7B1881 #AC22B5 #D139DA

Accessibility & contrast

On white

9.17
#7B1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1881
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1881#FFFFFF#000000##FFFFFF
##7B18811.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#314C7F
Tritanopia (blue-blind)
#7E2C4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1881;
/* rgb */ color: rgb(123, 24, 129);
/* oklch */ color: oklch(42.5% 0.177 325.5);
Tailwind
colors: {
  custom: {
    50: '#a563a6',
    500: '#7b1881',
    950: '#000000',
  },
}
SCSS
$custom: #7b1881;
$custom-light: #a563a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1881",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 296.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.42457,
    "c": 0.17711,
    "h": 325.5
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#7B1881
secondary
#46B540
accent
#EB3C46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1881

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

Preview Lab → · Contrast checker → · Palette generator →

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