#7F2271#7F2271

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

Color values

HEX#7F2271
RGBrgb(127, 34, 113)
HSLhsl(309, 58%, 32%)
HSVhsv(309, 73%, 50%)
CMYKcmyk(0%, 73.2%, 11%, 50.2%)
CIE-LABlab(31.46, 48.37, -24.35)
CIE-LCHlch(31.46, 54.15, 333.28°)
OKLaboklab(42.97% 0.1408 -0.0665)
OKLCHoklch(42.97% 0.156 334.7)
XYZxyz(12.3052, 6.8494, 16.2936)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2271 #227F30
analogous
#5F227F #7F2271 #7F2243
triadic
#7F2271 #717F22 #22717F
tetradic
#7F2271 #7F5F22 #227F30 #22437F
square
#7F2271 #7F5F22 #227F30 #22437F
split-complementary
#7F2271 #437F22 #227F5F
monochromatic
#1E081B #4F1546 #7F2271 #AF2F9C #CF4CBB

Accessibility & contrast

On white

8.86
#7F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2271
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2271#FFFFFF#000000##FFFFFF
##7F22711.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214173
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#852947
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2271;
/* rgb */ color: rgb(127, 34, 113);
/* oklch */ color: oklch(43.0% 0.156 334.7);
Tailwind
colors: {
  custom: {
    50: '#a7669a',
    500: '#7f2271',
    950: '#000000',
  },
}
SCSS
$custom: #7f2271;
$custom-light: #a7669a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2271",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 309.032,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42968,
    "c": 0.1557,
    "h": 334.7
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#7F2271
secondary
#4BB25B
accent
#E15E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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