#7F229A#7F229A

#7F229A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.190 H 317.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7F229A
RGBrgb(127, 34, 154)
HSLhsl(287, 64%, 37%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(17.5%, 77.9%, 0%, 39.6%)
CIE-LABlab(33.96, 55.78, -45.87)
CIE-LCHlch(33.96, 72.22, 320.57°)
OKLaboklab(45.56% 0.1396 -0.1291)
OKLCHoklch(45.56% 0.19 317.2)
XYZxyz(15.1563, 7.9898, 31.3094)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F229A #3D9A22
analogous
#43229A #7F229A #9A2279
triadic
#7F229A #9A7F22 #229A7F
tetradic
#7F229A #9A4322 #3D9A22 #22799A
square
#7F229A #9A4322 #3D9A22 #22799A
split-complementary
#7F229A #799A22 #229A43
monochromatic
#2C0C36 #561768 #7F229A #A82DCC #BE5BDB

Accessibility & contrast

On white

8.08
#7F229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F229A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F229A#FFFFFF#000000##FFFFFF
##7F229A1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#245397
Tritanopia (blue-blind)
#7E3D5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f229a;
/* rgb */ color: rgb(127, 34, 154);
/* oklch */ color: oklch(45.6% 0.190 317.2);
Tailwind
colors: {
  custom: {
    50: '#a868b8',
    500: '#7f229a',
    950: '#000000',
  },
}
SCSS
$custom: #7f229a;
$custom-light: #a868b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f229a",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 286.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45557,
    "c": 0.19016,
    "h": 317.2
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#7F229A
secondary
#70BF58
accent
#E74166
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F229A

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

Preview Lab → · Contrast checker → · Palette generator →

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