#7B1B82#7B1B82

#7B1B82 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.175 H 325.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7B1B82
RGBrgb(123, 27, 130)
HSLhsl(296, 66%, 31%)
HSVhsv(296, 79%, 51%)
CMYKcmyk(5.4%, 79.2%, 0%, 49%)
CIE-LABlab(30.90, 52.74, -36.02)
CIE-LCHlch(30.90, 63.86, 325.67°)
OKLaboklab(42.74% 0.1434 -0.1004)
OKLCHoklch(42.74% 0.175 325)
XYZxyz(12.5893, 6.6074, 21.7270)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B82 #22821B
analogous
#471B82 #7B1B82 #821B55
triadic
#7B1B82 #827B1B #1B827B
tetradic
#7B1B82 #82471B #22821B #1B5582
square
#7B1B82 #82471B #22821B #1B5582
split-complementary
#7B1B82 #55821B #1B8247
monochromatic
#1B061D #4B104F #7B1B82 #AB26B5 #CD40D7

Accessibility & contrast

On white

9.05
#7B1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7B1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1B82
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B82#FFFFFF#000000##FFFFFF
##7B1B821.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#314D80
Tritanopia (blue-blind)
#7E2E4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1b82;
/* rgb */ color: rgb(123, 27, 130);
/* oklch */ color: oklch(42.7% 0.175 325.0);
Tailwind
colors: {
  custom: {
    50: '#a564a7',
    500: '#7b1b82',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b82;
$custom-light: #a564a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b82",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 295.922,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42744,
    "c": 0.17507,
    "h": 325
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#7B1B82
secondary
#4BB643
accent
#E93F4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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