#7B1C82#7B1C82

#7B1C82 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.174 H 325.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7B1C82
RGBrgb(123, 28, 130)
HSLhsl(296, 65%, 31%)
HSVhsv(296, 78%, 51%)
CMYKcmyk(5.4%, 78.5%, 0%, 49%)
CIE-LABlab(31.01, 52.42, -35.84)
CIE-LCHlch(31.01, 63.50, 325.64°)
OKLaboklab(42.82% 0.1426 -0.0999)
OKLCHoklch(42.82% 0.174 325)
XYZxyz(12.6126, 6.6540, 21.7348)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1C82 #23821C
analogous
#481C82 #7B1C82 #821C56
triadic
#7B1C82 #827B1C #1C827B
tetradic
#7B1C82 #82481C #23821C #1C5682
square
#7B1C82 #82481C #23821C #1C5682
split-complementary
#7B1C82 #56821C #1C8248
monochromatic
#1C061D #4B1150 #7B1C82 #AB27B4 #CC42D6

Accessibility & contrast

On white

9.01
#7B1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1C82
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1C82#FFFFFF#000000##FFFFFF
##7B1C821.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#324D80
Tritanopia (blue-blind)
#7E2F4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1c82;
/* rgb */ color: rgb(123, 28, 130);
/* oklch */ color: oklch(42.8% 0.174 325.0);
Tailwind
colors: {
  custom: {
    50: '#a564a7',
    500: '#7b1c82',
    950: '#000000',
  },
}
SCSS
$custom: #7b1c82;
$custom-light: #a564a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1c82",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 295.882,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42822,
    "c": 0.17406,
    "h": 325
  },
  "luminance": 0.06653
}

Semantic roles & 50–950 ramp

primary
#7B1C82
secondary
#4CB544
accent
#E8404C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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