#7B1DA8#7B1DA8

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

Color values

HEX#7B1DA8
RGBrgb(123, 29, 168)
HSLhsl(281, 71%, 39%)
HSVhsv(281, 83%, 66%)
CMYKcmyk(26.8%, 82.7%, 0%, 34.1%)
CIE-LABlab(33.81, 59.49, -54.61)
CIE-LCHlch(33.81, 80.76, 317.45°)
OKLaboklab(45.65% 0.1356 -0.1549)
OKLCHoklch(45.65% 0.206 311.2)
XYZxyz(15.6743, 7.9172, 37.7407)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DA8 #4AA81D
analogous
#361DA8 #7B1DA8 #A81D8F
triadic
#7B1DA8 #A87B1D #1DA87B
tetradic
#7B1DA8 #A8361D #4AA81D #1D8FA8
square
#7B1DA8 #A8361D #4AA81D #1D8FA8
split-complementary
#7B1DA8 #8FA81D #1DA836
monochromatic
#2F0B40 #551474 #7B1DA8 #A028DA #B75CE3

Accessibility & contrast

On white

8.13
#7B1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B1DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DA8
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DA8#FFFFFF#000000##FFFFFF
##7B1DA81.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1da8;
/* rgb */ color: rgb(123, 29, 168);
/* oklch */ color: oklch(45.6% 0.206 311.2);
Tailwind
colors: {
  custom: {
    50: '#a666c3',
    500: '#7b1da8',
    950: '#000000',
  },
}
SCSS
$custom: #7b1da8;
$custom-light: #a666c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1da8",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 280.576,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45649,
    "c": 0.20586,
    "h": 311.2
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#7B1DA8
secondary
#7DC75A
accent
#ED3A74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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