#7B1FA9#7B1FA9

#7B1FA9 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 45.9% C 0.205 H 310.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7B1FA9
RGBrgb(123, 31, 169)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 82%, 66%)
CMYKcmyk(27.2%, 81.7%, 0%, 33.7%)
CIE-LABlab(34.10, 59.08, -54.74)
CIE-LCHlch(34.10, 80.55, 317.18°)
OKLaboklab(45.88% 0.1339 -0.1553)
OKLCHoklch(45.88% 0.205 310.8)
XYZxyz(15.8184, 8.0559, 38.2501)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FA9 #4DA91F
analogous
#361FA9 #7B1FA9 #A91F92
triadic
#7B1FA9 #A97B1F #1FA97B
tetradic
#7B1FA9 #A9361F #4DA91F #1F92A9
square
#7B1FA9 #A9361F #4DA91F #1F92A9
split-complementary
#7B1FA9 #92A91F #1FA936
monochromatic
#300C42 #551675 #7B1FA9 #9F2DD8 #B760E2

Accessibility & contrast

On white

8.04
#7B1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7B1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1FA9
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FA9#FFFFFF#000000##FFFFFF
##7B1FA91.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#754365
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b1fa9;
/* rgb */ color: rgb(123, 31, 169);
/* oklch */ color: oklch(45.9% 0.205 310.8);
Tailwind
colors: {
  custom: {
    50: '#a667c3',
    500: '#7b1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fa9;
$custom-light: #a667c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fa9",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 280,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45875,
    "c": 0.20504,
    "h": 310.8
  },
  "luminance": 0.08055
}

Semantic roles & 50–950 ramp

primary
#7B1FA9
secondary
#80C75D
accent
#EC3C77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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