#7B1BA7#7B1BA7

#7B1BA7 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.4% C 0.207 H 311.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7B1BA7
RGBrgb(123, 27, 167)
HSLhsl(281, 72%, 38%)
HSVhsv(281, 84%, 65%)
CMYKcmyk(26.3%, 83.8%, 0%, 34.5%)
CIE-LABlab(33.53, 59.87, -54.46)
CIE-LCHlch(33.53, 80.94, 317.71°)
OKLaboklab(45.43% 0.1372 -0.1545)
OKLCHoklch(45.43% 0.207 311.6)
XYZxyz(15.5340, 7.7853, 37.2361)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1BA7 #47A71B
analogous
#351BA7 #7B1BA7 #A71B8D
triadic
#7B1BA7 #A77B1B #1BA77B
tetradic
#7B1BA7 #A7351B #47A71B #1B8DA7
square
#7B1BA7 #A7351B #47A71B #1B8DA7
split-complementary
#7B1BA7 #8DA71B #1BA735
monochromatic
#2D0A3E #541272 #7B1BA7 #A224DC #B858E4

Accessibility & contrast

On white

8.21
#7B1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7B1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1BA7
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1BA7#FFFFFF#000000##FFFFFF
##7B1BA71.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#754063
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b1ba7;
/* rgb */ color: rgb(123, 27, 167);
/* oklch */ color: oklch(45.4% 0.207 311.6);
Tailwind
colors: {
  custom: {
    50: '#a666c2',
    500: '#7b1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ba7;
$custom-light: #a666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ba7",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 281.143,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.2066,
    "h": 311.6
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#7B1BA7
secondary
#7AC856
accent
#EF3972
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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