#7F2A8E#7F2A8E

#7F2A8E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.170 H 321.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7F2A8E
RGBrgb(127, 42, 142)
HSLhsl(291, 54%, 36%)
HSVhsv(291, 70%, 56%)
CMYKcmyk(10.6%, 70.4%, 0%, 44.3%)
CIE-LABlab(34.24, 50.40, -38.09)
CIE-LCHlch(34.24, 63.18, 322.92°)
OKLaboklab(45.5% 0.1327 -0.1064)
OKLCHoklch(45.5% 0.17 321.3)
XYZxyz(14.4623, 8.1217, 26.3918)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A8E #398E2A
analogous
#4D2A8E #7F2A8E #8E2A6B
triadic
#7F2A8E #8E7F2A #2A8E7F
tetradic
#7F2A8E #8E4D2A #398E2A #2A6B8E
square
#7F2A8E #8E4D2A #398E2A #2A6B8E
split-complementary
#7F2A8E #6B8E2A #2A8E4D
monochromatic
#2B0E30 #551C5F #7F2A8E #A938BD #C062D1

Accessibility & contrast

On white

8.00
#7F2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A8E
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A8E#FFFFFF#000000##FFFFFF
##7F2A8E1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A91
Deuteranopia (green-blind)
#35548C
Tritanopia (blue-blind)
#803C59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2a8e;
/* rgb */ color: rgb(127, 42, 142);
/* oklch */ color: oklch(45.5% 0.170 321.3);
Tailwind
colors: {
  custom: {
    50: '#a76baf',
    500: '#7f2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a8e;
$custom-light: #a76baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a8e",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 291,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.1701,
    "h": 321.3
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#7F2A8E
secondary
#6BB65D
accent
#DE4A60
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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