#7B2272#7B2272

#7B2272 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.154 H 332.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7B2272
RGBrgb(123, 34, 114)
HSLhsl(306, 57%, 31%)
HSVhsv(306, 72%, 48%)
CMYKcmyk(0%, 72.4%, 7.3%, 51.8%)
CIE-LABlab(30.81, 47.51, -26.06)
CIE-LCHlch(30.81, 54.19, 331.25°)
OKLaboklab(42.38% 0.1364 -0.0715)
OKLCHoklch(42.38% 0.154 332.3)
XYZxyz(11.7777, 6.5709, 16.5643)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2272 #227B2B
analogous
#57227B #7B2272 #7B2245
triadic
#7B2272 #727B22 #22727B
tetradic
#7B2272 #7B5722 #227B2B #22457B
square
#7B2272 #7B5722 #227B2B #22457B
split-complementary
#7B2272 #457B22 #227B57
monochromatic
#1B0719 #4B1546 #7B2272 #AB2F9E #CD4AC0

Accessibility & contrast

On white

9.08
#7B2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7B2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2272
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2272#FFFFFF#000000##FFFFFF
##7B22721.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4074
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#802B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b2272;
/* rgb */ color: rgb(123, 34, 114);
/* oklch */ color: oklch(42.4% 0.154 332.3);
Tailwind
colors: {
  custom: {
    50: '#a4669b',
    500: '#7b2272',
    950: '#000000',
  },
}
SCSS
$custom: #7b2272;
$custom-light: #a4669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2272",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 306.067,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42378,
    "c": 0.15407,
    "h": 332.3
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#7B2272
secondary
#4BAE55
accent
#E05748
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2272

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

Preview Lab → · Contrast checker → · Palette generator →

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