#7F2B8A#7F2B8A

#7F2B8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.165 H 322.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7F2B8A
RGBrgb(127, 43, 138)
HSLhsl(293, 52%, 35%)
HSVhsv(293, 69%, 54%)
CMYKcmyk(8%, 68.8%, 0%, 45.9%)
CIE-LABlab(34.14, 49.21, -35.78)
CIE-LCHlch(34.14, 60.84, 323.98°)
OKLaboklab(45.35% 0.1317 -0.0997)
OKLCHoklch(45.35% 0.165 322.9)
XYZxyz(14.2033, 8.0756, 24.8504)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B8A #368A2B
analogous
#502B8A #7F2B8A #8A2B65
triadic
#7F2B8A #8A7F2B #2B8A7F
tetradic
#7F2B8A #8A502B #368A2B #2B658A
square
#7F2B8A #8A502B #368A2B #2B658A
split-complementary
#7F2B8A #658A2B #2B8A50
monochromatic
#290E2D #541C5B #7F2B8A #AA3AB9 #C161CE

Accessibility & contrast

On white

8.03
#7F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2B8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B8A#FFFFFF#000000##FFFFFF
##7F2B8A1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#395488
Tritanopia (blue-blind)
#813B57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2b8a;
/* rgb */ color: rgb(127, 43, 138);
/* oklch */ color: oklch(45.4% 0.165 322.9);
Tailwind
colors: {
  custom: {
    50: '#a76cac',
    500: '#7f2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b8a;
$custom-light: #a76cac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b8a",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 293.053,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45353,
    "c": 0.16514,
    "h": 322.9
  },
  "luminance": 0.08075
}

Semantic roles & 50–950 ramp

primary
#7F2B8A
secondary
#67B45D
accent
#DC4C5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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