#7F227F#7F227F

#7F227F is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.167 H 328.0°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7F227F
RGBrgb(127, 34, 127)
HSLhsl(300, 58%, 32%)
HSVhsv(300, 73%, 50%)
CMYKcmyk(0%, 73.2%, 0%, 50.2%)
CIE-LABlab(32.23, 50.73, -31.97)
CIE-LCHlch(32.23, 59.96, 327.78°)
OKLaboklab(43.77% 0.1415 -0.0885)
OKLCHoklch(43.77% 0.167 328)
XYZxyz(13.1550, 7.1893, 20.7694)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F227F #227F22
analogous
#51227F #7F227F #7F2251
triadic
#7F227F #7F7F22 #227F7F
tetradic
#7F227F #7F5122 #227F22 #22517F
square
#7F227F #7F5122 #227F22 #22517F
split-complementary
#7F227F #517F22 #227F51
monochromatic
#1E081E #4F154F #7F227F #AF2FAF #CF4CCF

Accessibility & contrast

On white

8.62
#7F227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F227F
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F227F#FFFFFF#000000##FFFFFF
##7F227F1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#3B507D
Tritanopia (blue-blind)
#83304E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f227f;
/* rgb */ color: rgb(127, 34, 127);
/* oklch */ color: oklch(43.8% 0.167 328.0);
Tailwind
colors: {
  custom: {
    50: '#a767a4',
    500: '#7f227f',
    950: '#000000',
  },
}
SCSS
$custom: #7f227f;
$custom-light: #a767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f227f",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43774,
    "c": 0.16692,
    "h": 328
  },
  "luminance": 0.07188
}

Semantic roles & 50–950 ramp

primary
#7F227F
secondary
#4BB24B
accent
#E14747
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F227F

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

Preview Lab → · Contrast checker → · Palette generator →

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