#7B147F#7B147F

#7B147F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.1% C 0.179 H 326.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7B147F
RGBrgb(123, 20, 127)
HSLhsl(298, 73%, 29%)
HSVhsv(298, 84%, 50%)
CMYKcmyk(3.1%, 84.3%, 0%, 50.2%)
CIE-LABlab(30.02, 54.19, -35.53)
CIE-LCHlch(30.02, 64.80, 326.75°)
OKLaboklab(42.06% 0.1492 -0.0989)
OKLCHoklch(42.06% 0.179 326.4)
XYZxyz(12.2491, 6.2445, 20.6347)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B147F #187F14
analogous
#46147F #7B147F #7F144E
triadic
#7B147F #7F7B14 #147F7B
tetradic
#7B147F #7F4614 #187F14 #144E7F
square
#7B147F #7F4614 #187F14 #144E7F
split-complementary
#7B147F #4E7F14 #147F46
monochromatic
#1A041A #480C4A #7B147F #AE1CB4 #D82FDE

Accessibility & contrast

On white

9.34
#7B147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7B147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B147F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B147F#FFFFFF#000000##FFFFFF
##7B147F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7E294B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b147f;
/* rgb */ color: rgb(123, 20, 127);
/* oklch */ color: oklch(42.1% 0.179 326.4);
Tailwind
colors: {
  custom: {
    50: '#a561a5',
    500: '#7b147f',
    950: '#000000',
  },
}
SCSS
$custom: #7b147f;
$custom-light: #a561a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b147f",
  "rgb": {
    "r": 123,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 297.757,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42062,
    "c": 0.17897,
    "h": 326.4
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#7B147F
secondary
#3FB43B
accent
#EF383F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B147F

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

Preview Lab → · Contrast checker → · Palette generator →

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