#7F227B#7F227B

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

Color values

HEX#7F227B
RGBrgb(127, 34, 123)
HSLhsl(303, 58%, 32%)
HSVhsv(303, 73%, 50%)
CMYKcmyk(0%, 73.2%, 3.1%, 50.2%)
CIE-LABlab(32.00, 50.03, -29.82)
CIE-LCHlch(32.00, 58.25, 329.21°)
OKLaboklab(43.54% 0.1414 -0.0823)
OKLCHoklch(43.54% 0.164 329.8)
XYZxyz(12.8995, 7.0871, 19.4236)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F227B #227F26
analogous
#55227F #7F227B #7F224D
triadic
#7F227B #7B7F22 #227B7F
tetradic
#7F227B #7F5522 #227F26 #224D7F
square
#7F227B #7F5522 #227F26 #224D7F
split-complementary
#7F227B #4D7F22 #227F55
monochromatic
#1E081D #4F154C #7F227B #AF2FAA #CF4CCA

Accessibility & contrast

On white

8.69
#7F227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F227B
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F227B#FFFFFF#000000##FFFFFF
##7F227B1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#3D5079
Tritanopia (blue-blind)
#842E4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f227b;
/* rgb */ color: rgb(127, 34, 123);
/* oklch */ color: oklch(43.5% 0.164 329.8);
Tailwind
colors: {
  custom: {
    50: '#a767a1',
    500: '#7f227b',
    950: '#000000',
  },
}
SCSS
$custom: #7f227b;
$custom-light: #a767a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f227b",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 302.581,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43535,
    "c": 0.16363,
    "h": 329.8
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#7F227B
secondary
#4BB250
accent
#E14D47
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F227B

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

Preview Lab → · Contrast checker → · Palette generator →

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