#7F2276#7F2276

#7F2276 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.160 H 332.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7F2276
RGBrgb(127, 34, 118)
HSLhsl(306, 58%, 32%)
HSVhsv(306, 73%, 50%)
CMYKcmyk(0%, 73.2%, 7.1%, 50.2%)
CIE-LABlab(31.73, 49.19, -27.10)
CIE-LCHlch(31.73, 56.16, 331.14°)
OKLaboklab(43.25% 0.1412 -0.0745)
OKLCHoklch(43.25% 0.16 332.2)
XYZxyz(12.5945, 6.9651, 17.8171)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2276 #227F2B
analogous
#5A227F #7F2276 #7F2248
triadic
#7F2276 #767F22 #22767F
tetradic
#7F2276 #7F5A22 #227F2B #22487F
square
#7F2276 #7F5A22 #227F2B #22487F
split-complementary
#7F2276 #487F22 #227F5A
monochromatic
#1E081C #4F1549 #7F2276 #AF2FA3 #CF4CC2

Accessibility & contrast

On white

8.78
#7F2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2276
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2276#FFFFFF#000000##FFFFFF
##7F22761.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4278
Deuteranopia (green-blind)
#3F4F74
Tritanopia (blue-blind)
#852C49
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f2276;
/* rgb */ color: rgb(127, 34, 118);
/* oklch */ color: oklch(43.2% 0.160 332.2);
Tailwind
colors: {
  custom: {
    50: '#a7679e',
    500: '#7f2276',
    950: '#000000',
  },
}
SCSS
$custom: #7f2276;
$custom-light: #a7679e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2276",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 305.806,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43246,
    "c": 0.15961,
    "h": 332.2
  },
  "luminance": 0.06964
}

Semantic roles & 50–950 ramp

primary
#7F2276
secondary
#4BB255
accent
#E15647
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2276

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

Preview Lab → · Contrast checker → · Palette generator →

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