#7B2271#7B2271

#7B2271 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.153 H 332.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7B2271
RGBrgb(123, 34, 113)
HSLhsl(307, 57%, 31%)
HSVhsv(307, 72%, 48%)
CMYKcmyk(0%, 72.4%, 8.1%, 51.8%)
CIE-LABlab(30.76, 47.34, -25.51)
CIE-LCHlch(30.76, 53.78, 331.68°)
OKLaboklab(42.32% 0.1364 -0.07)
OKLCHoklch(42.32% 0.153 332.8)
XYZxyz(11.7211, 6.5482, 16.2662)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2271 #227B2C
analogous
#58227B #7B2271 #7B2244
triadic
#7B2271 #717B22 #22717B
tetradic
#7B2271 #7B5822 #227B2C #22447B
square
#7B2271 #7B5822 #227B2C #22447B
split-complementary
#7B2271 #447B22 #227B58
monochromatic
#1B0719 #4B1545 #7B2271 #AB2F9D #CD4ABE

Accessibility & contrast

On white

9.09
#7B2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2271
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2271#FFFFFF#000000##FFFFFF
##7B22711.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#3E4D6F
Tritanopia (blue-blind)
#812B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b2271;
/* rgb */ color: rgb(123, 34, 113);
/* oklch */ color: oklch(42.3% 0.153 332.8);
Tailwind
colors: {
  custom: {
    50: '#a4669a',
    500: '#7b2271',
    950: '#000000',
  },
}
SCSS
$custom: #7b2271;
$custom-light: #a4669a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2271",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 306.742,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42322,
    "c": 0.15327,
    "h": 332.8
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#7B2271
secondary
#4BAE56
accent
#E05948
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2271

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

Preview Lab → · Contrast checker → · Palette generator →

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