#7B1CA8#7B1CA8

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

Color values

HEX#7B1CA8
RGBrgb(123, 28, 168)
HSLhsl(281, 71%, 38%)
HSVhsv(281, 83%, 66%)
CMYKcmyk(26.8%, 83.3%, 0%, 34.1%)
CIE-LABlab(33.71, 59.79, -54.78)
CIE-LCHlch(33.71, 81.09, 317.51°)
OKLaboklab(45.58% 0.1363 -0.1554)
OKLCHoklch(45.58% 0.207 311.2)
XYZxyz(15.6502, 7.8690, 37.7326)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1CA8 #49A81C
analogous
#351CA8 #7B1CA8 #A81C8F
triadic
#7B1CA8 #A87B1C #1CA87B
tetradic
#7B1CA8 #A8351C #49A81C #1C8FA8
square
#7B1CA8 #A8351C #49A81C #1C8FA8
split-complementary
#7B1CA8 #8FA81C #1CA835
monochromatic
#2E0B3F #551374 #7B1CA8 #A126DB #B85BE4

Accessibility & contrast

On white

8.16
#7B1CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B1CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1CA8
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1CA8#FFFFFF#000000##FFFFFF
##7B1CA81.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#754164
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b1ca8;
/* rgb */ color: rgb(123, 28, 168);
/* oklch */ color: oklch(45.6% 0.207 311.2);
Tailwind
colors: {
  custom: {
    50: '#a666c3',
    500: '#7b1ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ca8;
$custom-light: #a666c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ca8",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 280.714,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45578,
    "c": 0.20668,
    "h": 311.2
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#7B1CA8
secondary
#7CC758
accent
#EE3A74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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