#7F227D#7F227D

#7F227D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.165 H 328.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7F227D
RGBrgb(127, 34, 125)
HSLhsl(301, 58%, 32%)
HSVhsv(301, 73%, 50%)
CMYKcmyk(0%, 73.2%, 1.6%, 50.2%)
CIE-LABlab(32.12, 50.38, -30.90)
CIE-LCHlch(32.12, 59.10, 328.48°)
OKLaboklab(43.65% 0.1415 -0.0854)
OKLCHoklch(43.65% 0.165 328.9)
XYZxyz(13.0260, 7.1377, 20.0897)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F227D #227F24
analogous
#53227F #7F227D #7F224F
triadic
#7F227D #7D7F22 #227D7F
tetradic
#7F227D #7F5322 #227F24 #224F7F
square
#7F227D #7F5322 #227F24 #224F7F
split-complementary
#7F227D #4F7F22 #227F53
monochromatic
#1E081E #4F154D #7F227D #AF2FAD #CF4CCC

Accessibility & contrast

On white

8.65
#7F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F227D
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F227D#FFFFFF#000000##FFFFFF
##7F227D1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144480
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#832F4D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f227d;
/* rgb */ color: rgb(127, 34, 125);
/* oklch */ color: oklch(43.7% 0.165 328.9);
Tailwind
colors: {
  custom: {
    50: '#a767a3',
    500: '#7f227d',
    950: '#000000',
  },
}
SCSS
$custom: #7f227d;
$custom-light: #a767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f227d",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 301.29,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43654,
    "c": 0.16527,
    "h": 328.9
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#7F227D
secondary
#4BB24D
accent
#E14A47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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