#7F2A8B#7F2A8B

#7F2A8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.167 H 322.5°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7F2A8B
RGBrgb(127, 42, 139)
HSLhsl(293, 54%, 35%)
HSVhsv(293, 70%, 55%)
CMYKcmyk(8.6%, 69.8%, 0%, 45.5%)
CIE-LABlab(34.05, 49.82, -36.53)
CIE-LCHlch(34.05, 61.78, 323.75°)
OKLaboklab(45.31% 0.1328 -0.1019)
OKLCHoklch(45.31% 0.167 322.5)
XYZxyz(14.2401, 8.0328, 25.2215)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A8B #368B2A
analogous
#4E2A8B #7F2A8B #8B2A66
triadic
#7F2A8B #8B7F2A #2A8B7F
tetradic
#7F2A8B #8B4E2A #368B2A #2A668B
square
#7F2A8B #8B4E2A #368B2A #2A668B
split-complementary
#7F2A8B #668B2A #2A8B4E
monochromatic
#290E2D #541C5C #7F2A8B #AA38BA #C160CF

Accessibility & contrast

On white

8.06
#7F2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A8B
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A8B#FFFFFF#000000##FFFFFF
##7F2A8B1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8E
Deuteranopia (green-blind)
#385389
Tritanopia (blue-blind)
#813A57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2a8b;
/* rgb */ color: rgb(127, 42, 139);
/* oklch */ color: oklch(45.3% 0.167 322.5);
Tailwind
colors: {
  custom: {
    50: '#a76bad',
    500: '#7f2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a8b;
$custom-light: #a76bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a8b",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 292.577,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45308,
    "c": 0.16737,
    "h": 322.5
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#7F2A8B
secondary
#67B55C
accent
#DD4B5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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