#7F2C8B#7F2C8B

#7F2C8B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.165 H 322.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F2C8B
RGBrgb(127, 44, 139)
HSLhsl(292, 52%, 36%)
HSVhsv(292, 68%, 55%)
CMYKcmyk(8.6%, 68.3%, 0%, 45.5%)
CIE-LABlab(34.35, 48.98, -36.06)
CIE-LCHlch(34.35, 60.82, 323.64°)
OKLaboklab(45.52% 0.1305 -0.1005)
OKLCHoklch(45.52% 0.165 322.4)
XYZxyz(14.3128, 8.1783, 25.2458)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C8B #388B2C
analogous
#4F2C8B #7F2C8B #8B2C67
triadic
#7F2C8B #8B7F2C #2C8B7F
tetradic
#7F2C8B #8B4F2C #388B2C #2C678B
square
#7F2C8B #8B4F2C #388B2C #2C678B
split-complementary
#7F2C8B #678B2C #2C8B4F
monochromatic
#2A0F2E #551D5D #7F2C8B #A93BB9 #C064CE

Accessibility & contrast

On white

7.97
#7F2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F2C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C8B
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C8B#FFFFFF#000000##FFFFFF
##7F2C8B1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#813C58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2c8b;
/* rgb */ color: rgb(127, 44, 139);
/* oklch */ color: oklch(45.5% 0.165 322.4);
Tailwind
colors: {
  custom: {
    50: '#a76cad',
    500: '#7f2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c8b;
$custom-light: #a76cad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c8b",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 292.421,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45524,
    "c": 0.16471,
    "h": 322.4
  },
  "luminance": 0.08177
}

Semantic roles & 50–950 ramp

primary
#7F2C8B
secondary
#69B45F
accent
#DB4C5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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