#7B277D#7B277D

#7B277D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.157 H 326.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7B277D
RGBrgb(123, 39, 125)
HSLhsl(299, 52%, 32%)
HSVhsv(299, 69%, 49%)
CMYKcmyk(1.6%, 68.8%, 0%, 51%)
CIE-LABlab(32.13, 47.45, -30.92)
CIE-LCHlch(32.13, 56.64, 326.91°)
OKLaboklab(43.53% 0.1313 -0.0856)
OKLCHoklch(43.53% 0.157 326.9)
XYZxyz(12.5954, 7.1435, 20.1135)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B277D #297D27
analogous
#50277D #7B277D #7D2754
triadic
#7B277D #7D7B27 #277D7B
tetradic
#7B277D #7D5027 #297D27 #27547D
square
#7B277D #7D5027 #297D27 #27547D
split-complementary
#7B277D #547D27 #277D50
monochromatic
#1F0A20 #4D184E #7B277D #A936AC #C755CA

Accessibility & contrast

On white

8.65
#7B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7B277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B277D
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B277D#FFFFFF#000000##FFFFFF
##7B277D1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19457F
Deuteranopia (green-blind)
#3B4F7B
Tritanopia (blue-blind)
#7F334F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b277d;
/* rgb */ color: rgb(123, 39, 125);
/* oklch */ color: oklch(43.5% 0.157 326.9);
Tailwind
colors: {
  custom: {
    50: '#a469a3',
    500: '#7b277d',
    950: '#000000',
  },
}
SCSS
$custom: #7b277d;
$custom-light: #a469a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b277d",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 298.605,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43531,
    "c": 0.15677,
    "h": 326.9
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#7B277D
secondary
#53AF51
accent
#DC4C4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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