#7F2A92#7F2A92

#7F2A92 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.174 H 319.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7F2A92
RGBrgb(127, 42, 146)
HSLhsl(289, 55%, 37%)
HSVhsv(289, 71%, 57%)
CMYKcmyk(13%, 71.2%, 0%, 42.7%)
CIE-LABlab(34.49, 51.19, -40.14)
CIE-LCHlch(34.49, 65.05, 321.90°)
OKLaboklab(45.76% 0.1325 -0.1124)
OKLCHoklch(45.76% 0.174 319.7)
XYZxyz(14.7680, 8.2440, 28.0019)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A92 #3D922A
analogous
#4B2A92 #7F2A92 #922A71
triadic
#7F2A92 #927F2A #2A927F
tetradic
#7F2A92 #924B2A #3D922A #2A7192
square
#7F2A92 #924B2A #3D922A #2A7192
split-complementary
#7F2A92 #71922A #2A924B
monochromatic
#2C0F33 #561C62 #7F2A92 #A838C2 #BE64D2

Accessibility & contrast

On white

7.93
#7F2A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A92
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A92#FFFFFF#000000##FFFFFF
##7F2A921.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B95
Deuteranopia (green-blind)
#325490
Tritanopia (blue-blind)
#7F3D5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2a92;
/* rgb */ color: rgb(127, 42, 146);
/* oklch */ color: oklch(45.8% 0.174 319.7);
Tailwind
colors: {
  custom: {
    50: '#a76bb2',
    500: '#7f2a92',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a92;
$custom-light: #a76bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a92",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 146
  },
  "hsl": {
    "h": 289.038,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.17378,
    "h": 319.7
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#7F2A92
secondary
#70B85F
accent
#DF4964
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A92

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

Preview Lab → · Contrast checker → · Palette generator →

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