#7B1FA7#7B1FA7

#7B1FA7 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.7% C 0.203 H 311.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7B1FA7
RGBrgb(123, 31, 167)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 81%, 65%)
CMYKcmyk(26.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(33.94, 58.67, -53.79)
CIE-LCHlch(33.94, 79.60, 317.48°)
OKLaboklab(45.72% 0.1343 -0.1525)
OKLCHoklch(45.72% 0.203 311.4)
XYZxyz(15.6321, 7.9814, 37.2688)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FA7 #4BA71F
analogous
#371FA7 #7B1FA7 #A71F8F
triadic
#7B1FA7 #A77B1F #1FA77B
tetradic
#7B1FA7 #A7371F #4BA71F #1F8FA7
square
#7B1FA7 #A7371F #4BA71F #1F8FA7
split-complementary
#7B1FA7 #8FA71F #1FA737
monochromatic
#2F0C40 #551573 #7B1FA7 #A02BD8 #B75FE1

Accessibility & contrast

On white

8.09
#7B1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7B1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1FA7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FA7#FFFFFF#000000##FFFFFF
##7B1FA71.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1fa7;
/* rgb */ color: rgb(123, 31, 167);
/* oklch */ color: oklch(45.7% 0.203 311.4);
Tailwind
colors: {
  custom: {
    50: '#a667c2',
    500: '#7b1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fa7;
$custom-light: #a667c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fa7",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 280.588,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45718,
    "c": 0.20325,
    "h": 311.4
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#7B1FA7
secondary
#7EC65C
accent
#EC3C75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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