#7F227A#7F227A

#7F227A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.163 H 330.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7F227A
RGBrgb(127, 34, 122)
HSLhsl(303, 58%, 32%)
HSVhsv(303, 73%, 50%)
CMYKcmyk(0%, 73.2%, 3.9%, 50.2%)
CIE-LABlab(31.95, 49.86, -29.28)
CIE-LCHlch(31.95, 57.82, 329.58°)
OKLaboklab(43.48% 0.1414 -0.0807)
OKLCHoklch(43.48% 0.163 330.3)
XYZxyz(12.8372, 7.0622, 19.0956)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F227A #227F27
analogous
#56227F #7F227A #7F224C
triadic
#7F227A #7A7F22 #227A7F
tetradic
#7F227A #7F5622 #227F27 #224C7F
square
#7F227A #7F5622 #227F27 #224C7F
split-complementary
#7F227A #4C7F22 #227F56
monochromatic
#1E081D #4F154C #7F227A #AF2FA8 #CF4CC8

Accessibility & contrast

On white

8.71
#7F227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7F227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F227A
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F227A#FFFFFF#000000##FFFFFF
##7F227A1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437C
Deuteranopia (green-blind)
#3D5078
Tritanopia (blue-blind)
#842E4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f227a;
/* rgb */ color: rgb(127, 34, 122);
/* oklch */ color: oklch(43.5% 0.163 330.3);
Tailwind
colors: {
  custom: {
    50: '#a767a1',
    500: '#7f227a',
    950: '#000000',
  },
}
SCSS
$custom: #7f227a;
$custom-light: #a767a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f227a",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 303.226,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43476,
    "c": 0.16282,
    "h": 330.3
  },
  "luminance": 0.07061
}

Semantic roles & 50–950 ramp

primary
#7F227A
secondary
#4BB251
accent
#E14F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F227A

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

Preview Lab → · Contrast checker → · Palette generator →

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