#7F2A94#7F2A94

#7F2A94 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.176 H 318.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7F2A94
RGBrgb(127, 42, 148)
HSLhsl(288, 56%, 37%)
HSVhsv(288, 72%, 58%)
CMYKcmyk(14.2%, 71.6%, 0%, 42%)
CIE-LABlab(34.61, 51.59, -41.16)
CIE-LCHlch(34.61, 65.99, 321.41°)
OKLaboklab(45.89% 0.1324 -0.1154)
OKLCHoklch(45.89% 0.176 318.9)
XYZxyz(14.9249, 8.3068, 28.8284)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A94 #3F942A
analogous
#4A2A94 #7F2A94 #942A74
triadic
#7F2A94 #947F2A #2A947F
tetradic
#7F2A94 #944A2A #3F942A #2A7494
square
#7F2A94 #944A2A #3F942A #2A7494
split-complementary
#7F2A94 #74942A #2A944A
monochromatic
#2D0F35 #561C64 #7F2A94 #A838C4 #BD65D3

Accessibility & contrast

On white

7.89
#7F2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A94
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A94#FFFFFF#000000##FFFFFF
##7F2A941.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#315492
Tritanopia (blue-blind)
#7F3E5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2a94;
/* rgb */ color: rgb(127, 42, 148);
/* oklch */ color: oklch(45.9% 0.176 318.9);
Tailwind
colors: {
  custom: {
    50: '#a76cb4',
    500: '#7f2a94',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a94;
$custom-light: #a76cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a94",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 288.113,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.17563,
    "h": 318.9
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#7F2A94
secondary
#72B960
accent
#DF4966
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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