#7B1FA8#7B1FA8

#7B1FA8 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.204 H 311.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7B1FA8
RGBrgb(123, 31, 168)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 82%, 66%)
CMYKcmyk(26.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(34.02, 58.88, -54.27)
CIE-LCHlch(34.02, 80.07, 317.33°)
OKLaboklab(45.8% 0.1341 -0.1539)
OKLCHoklch(45.8% 0.204 311.1)
XYZxyz(15.7249, 8.0185, 37.7576)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FA8 #4CA81F
analogous
#371FA8 #7B1FA8 #A81F91
triadic
#7B1FA8 #A87B1F #1FA87B
tetradic
#7B1FA8 #A8371F #4CA81F #1F91A8
square
#7B1FA8 #A8371F #4CA81F #1F91A8
split-complementary
#7B1FA8 #91A81F #1FA837
monochromatic
#2F0C41 #551574 #7B1FA8 #A02CD8 #B760E2

Accessibility & contrast

On white

8.07
#7B1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1FA8
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FA8#FFFFFF#000000##FFFFFF
##7B1FA81.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#754265
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b1fa8;
/* rgb */ color: rgb(123, 31, 168);
/* oklch */ color: oklch(45.8% 0.204 311.1);
Tailwind
colors: {
  custom: {
    50: '#a667c3',
    500: '#7b1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fa8;
$custom-light: #a667c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fa8",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 280.292,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.20415,
    "h": 311.1
  },
  "luminance": 0.08018
}

Semantic roles & 50–950 ramp

primary
#7B1FA8
secondary
#7FC65D
accent
#EC3C76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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