#7B147E#7B147E

#7B147E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.178 H 326.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7B147E
RGBrgb(123, 20, 126)
HSLhsl(298, 73%, 29%)
HSVhsv(298, 84%, 49%)
CMYKcmyk(2.4%, 84.1%, 0%, 50.6%)
CIE-LABlab(29.96, 54.02, -35.01)
CIE-LCHlch(29.96, 64.37, 327.06°)
OKLaboklab(42% 0.1492 -0.0974)
OKLCHoklch(42% 0.178 326.9)
XYZxyz(12.1842, 6.2185, 20.2932)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B147E #177E14
analogous
#46147E #7B147E #7E144C
triadic
#7B147E #7E7B14 #147E7B
tetradic
#7B147E #7E4614 #177E14 #144C7E
square
#7B147E #7E4614 #177E14 #144C7E
split-complementary
#7B147E #4C7E14 #147E46
monochromatic
#1A041A #470C49 #7B147E #AF1CB3 #D92EDE

Accessibility & contrast

On white

9.36
#7B147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7B147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B147E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B147E#FFFFFF#000000##FFFFFF
##7B147E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7F294A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b147e;
/* rgb */ color: rgb(123, 20, 126);
/* oklch */ color: oklch(42.0% 0.178 326.9);
Tailwind
colors: {
  custom: {
    50: '#a561a4',
    500: '#7b147e',
    950: '#000000',
  },
}
SCSS
$custom: #7b147e;
$custom-light: #a561a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b147e",
  "rgb": {
    "r": 123,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 298.302,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41997,
    "c": 0.1782,
    "h": 326.9
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#7B147E
secondary
#3EB33A
accent
#EF383E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B147E

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

Preview Lab → · Contrast checker → · Palette generator →

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