#7B2276#7B2276

#7B2276 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.157 H 330.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7B2276
RGBrgb(123, 34, 118)
HSLhsl(303, 57%, 31%)
HSVhsv(303, 72%, 48%)
CMYKcmyk(0%, 72.4%, 4.1%, 51.8%)
CIE-LABlab(31.03, 48.19, -28.25)
CIE-LCHlch(31.03, 55.86, 329.62°)
OKLaboklab(42.61% 0.1367 -0.0779)
OKLCHoklch(42.61% 0.157 330.3)
XYZxyz(12.0104, 6.6639, 17.7897)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2276 #227B27
analogous
#53227B #7B2276 #7B2249
triadic
#7B2276 #767B22 #22767B
tetradic
#7B2276 #7B5322 #227B27 #22497B
square
#7B2276 #7B5322 #227B27 #22497B
split-complementary
#7B2276 #497B22 #227B53
monochromatic
#1B071A #4B1548 #7B2276 #AB2FA4 #CD4AC6

Accessibility & contrast

On white

9.00
#7B2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2276
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2276#FFFFFF#000000##FFFFFF
##7B22761.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194178
Deuteranopia (green-blind)
#3C4D74
Tritanopia (blue-blind)
#802D49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2276;
/* rgb */ color: rgb(123, 34, 118);
/* oklch */ color: oklch(42.6% 0.157 330.3);
Tailwind
colors: {
  custom: {
    50: '#a4669e',
    500: '#7b2276',
    950: '#000000',
  },
}
SCSS
$custom: #7b2276;
$custom-light: #a4669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2276",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 303.371,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42608,
    "c": 0.15732,
    "h": 330.3
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#7B2276
secondary
#4BAE51
accent
#E05048
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2276

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

Preview Lab → · Contrast checker → · Palette generator →

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