#7F2272#7F2272

#7F2272 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.156 H 334.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2272
RGBrgb(127, 34, 114)
HSLhsl(308, 58%, 32%)
HSVhsv(308, 73%, 50%)
CMYKcmyk(0%, 73.2%, 10.2%, 50.2%)
CIE-LABlab(31.51, 48.53, -24.91)
CIE-LCHlch(31.51, 54.55, 332.83°)
OKLaboklab(43.02% 0.1409 -0.0681)
OKLCHoklch(43.02% 0.156 334.2)
XYZxyz(12.3618, 6.8720, 16.5917)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2272 #227F2F
analogous
#5E227F #7F2272 #7F2244
triadic
#7F2272 #727F22 #22727F
tetradic
#7F2272 #7F5E22 #227F2F #22447F
square
#7F2272 #7F5E22 #227F2F #22447F
split-complementary
#7F2272 #447F22 #227F5E
monochromatic
#1E081B #4F1547 #7F2272 #AF2F9D #CF4CBD

Accessibility & contrast

On white

8.85
#7F2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2272
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2272#FFFFFF#000000##FFFFFF
##7F22721.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204174
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#852A47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2272;
/* rgb */ color: rgb(127, 34, 114);
/* oklch */ color: oklch(43.0% 0.156 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7679b',
    500: '#7f2272',
    950: '#000000',
  },
}
SCSS
$custom: #7f2272;
$custom-light: #a7679b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2272",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 308.387,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43023,
    "c": 0.15647,
    "h": 334.2
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#7F2272
secondary
#4BB25A
accent
#E15C47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2272

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

Preview Lab → · Contrast checker → · Palette generator →

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