#7B1EA7#7B1EA7

#7B1EA7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.204 H 311.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7B1EA7
RGBrgb(123, 30, 167)
HSLhsl(281, 70%, 39%)
HSVhsv(281, 82%, 65%)
CMYKcmyk(26.3%, 82%, 0%, 34.5%)
CIE-LABlab(33.84, 58.98, -53.97)
CIE-LCHlch(33.84, 79.95, 317.54°)
OKLaboklab(45.64% 0.1351 -0.153)
OKLCHoklch(45.64% 0.204 311.4)
XYZxyz(15.6064, 7.9299, 37.2602)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1EA7 #4AA71E
analogous
#361EA7 #7B1EA7 #A71E8E
triadic
#7B1EA7 #A77B1E #1EA77B
tetradic
#7B1EA7 #A7361E #4AA71E #1E8EA7
square
#7B1EA7 #A7361E #4AA71E #1E8EA7
split-complementary
#7B1EA7 #8EA71E #1EA736
monochromatic
#2F0B3F #551573 #7B1EA7 #A02AD9 #B75DE2

Accessibility & contrast

On white

8.12
#7B1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7B1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1EA7
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1EA7#FFFFFF#000000##FFFFFF
##7B1EA71.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#754164
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b1ea7;
/* rgb */ color: rgb(123, 30, 167);
/* oklch */ color: oklch(45.6% 0.204 311.4);
Tailwind
colors: {
  custom: {
    50: '#a667c2',
    500: '#7b1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ea7;
$custom-light: #a667c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ea7",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 280.73,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45643,
    "c": 0.20412,
    "h": 311.4
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#7B1EA7
secondary
#7DC65B
accent
#EC3B74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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