#7B1FA6#7B1FA6

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

Color values

HEX#7B1FA6
RGBrgb(123, 31, 166)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 81%, 65%)
CMYKcmyk(25.9%, 81.3%, 0%, 34.9%)
CIE-LABlab(33.87, 58.46, -53.32)
CIE-LCHlch(33.87, 79.12, 317.64°)
OKLaboklab(45.64% 0.1346 -0.1511)
OKLCHoklch(45.64% 0.202 311.7)
XYZxyz(15.5400, 7.9445, 36.7838)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FA6 #4AA61F
analogous
#371FA6 #7B1FA6 #A61F8D
triadic
#7B1FA6 #A67B1F #1FA67B
tetradic
#7B1FA6 #A6371F #4AA61F #1F8DA6
square
#7B1FA6 #A6371F #4AA61F #1F8DA6
split-complementary
#7B1FA6 #8DA61F #1FA637
monochromatic
#2F0C3F #551572 #7B1FA6 #A02BD7 #B75EE1

Accessibility & contrast

On white

8.11
#7B1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1FA6
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FA6#FFFFFF#000000##FFFFFF
##7B1FA61.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1fa6;
/* rgb */ color: rgb(123, 31, 166);
/* oklch */ color: oklch(45.6% 0.202 311.7);
Tailwind
colors: {
  custom: {
    50: '#a667c1',
    500: '#7b1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fa6;
$custom-light: #a667c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fa6",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 280.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.20236,
    "h": 311.7
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#7B1FA6
secondary
#7DC55B
accent
#EB3C74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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