#7B2277#7B2277

#7B2277 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.158 H 329.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7B2277
RGBrgb(123, 34, 119)
HSLhsl(303, 57%, 31%)
HSVhsv(303, 72%, 48%)
CMYKcmyk(0%, 72.4%, 3.3%, 51.8%)
CIE-LABlab(31.09, 48.37, -28.80)
CIE-LCHlch(31.09, 56.29, 329.23°)
OKLaboklab(42.67% 0.1367 -0.0794)
OKLCHoklch(42.67% 0.158 329.8)
XYZxyz(12.0701, 6.6878, 18.1043)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2277 #227B26
analogous
#52227B #7B2277 #7B224A
triadic
#7B2277 #777B22 #22777B
tetradic
#7B2277 #7B5222 #227B26 #224A7B
square
#7B2277 #7B5222 #227B26 #224A7B
split-complementary
#7B2277 #4A7B22 #227B52
monochromatic
#1B071A #4B1549 #7B2277 #AB2FA5 #CD4AC7

Accessibility & contrast

On white

8.98
#7B2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2277
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2277#FFFFFF#000000##FFFFFF
##7B22771.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184179
Deuteranopia (green-blind)
#3C4D75
Tritanopia (blue-blind)
#802D4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2277;
/* rgb */ color: rgb(123, 34, 119);
/* oklch */ color: oklch(42.7% 0.158 329.8);
Tailwind
colors: {
  custom: {
    50: '#a4669e',
    500: '#7b2277',
    950: '#000000',
  },
}
SCSS
$custom: #7b2277;
$custom-light: #a4669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2277",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 302.697,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.15814,
    "h": 329.8
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#7B2277
secondary
#4BAE4F
accent
#E04F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2277

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

Preview Lab → · Contrast checker → · Palette generator →

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