#7A1B82#7A1B82

#7A1B82 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.175 H 324.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7A1B82
RGBrgb(122, 27, 130)
HSLhsl(295, 66%, 31%)
HSVhsv(295, 79%, 51%)
CMYKcmyk(6.2%, 79.2%, 0%, 49%)
CIE-LABlab(30.72, 52.52, -36.31)
CIE-LCHlch(30.72, 63.85, 325.35°)
OKLaboklab(42.59% 0.1423 -0.1013)
OKLCHoklch(42.59% 0.175 324.6)
XYZxyz(12.4469, 6.5340, 21.7204)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B82 #23821B
analogous
#461B82 #7A1B82 #821B56
triadic
#7A1B82 #827A1B #1B827A
tetradic
#7A1B82 #82461B #23821B #1B5682
square
#7A1B82 #82461B #23821B #1B5682
split-complementary
#7A1B82 #56821B #1B8246
monochromatic
#1B061D #4A104F #7A1B82 #AA26B5 #CC40D7

Accessibility & contrast

On white

9.10
#7A1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7A1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B82
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B82#FFFFFF#000000##FFFFFF
##7A1B821.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#304C80
Tritanopia (blue-blind)
#7D2F4E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1b82;
/* rgb */ color: rgb(122, 27, 130);
/* oklch */ color: oklch(42.6% 0.175 324.6);
Tailwind
colors: {
  custom: {
    50: '#a464a7',
    500: '#7a1b82',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b82;
$custom-light: #a464a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b82",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 295.34,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42586,
    "c": 0.17461,
    "h": 324.6
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#7A1B82
secondary
#4CB643
accent
#E93F4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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