#7F2B8E#7F2B8E

#7F2B8E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.169 H 321.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7F2B8E
RGBrgb(127, 43, 142)
HSLhsl(291, 54%, 36%)
HSVhsv(291, 70%, 56%)
CMYKcmyk(10.6%, 69.7%, 0%, 44.3%)
CIE-LABlab(34.38, 49.99, -37.85)
CIE-LCHlch(34.38, 62.70, 322.87°)
OKLaboklab(45.61% 0.1316 -0.1057)
OKLCHoklch(45.61% 0.169 321.2)
XYZxyz(14.4982, 8.1935, 26.4038)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B8E #3A8E2B
analogous
#4E2B8E #7F2B8E #8E2B6C
triadic
#7F2B8E #8E7F2B #2B8E7F
tetradic
#7F2B8E #8E4E2B #3A8E2B #2B6C8E
square
#7F2B8E #8E4E2B #3A8E2B #2B6C8E
split-complementary
#7F2B8E #6C8E2B #2B8E4E
monochromatic
#2B0F30 #551D5F #7F2B8E #A939BD #BF63D0

Accessibility & contrast

On white

7.96
#7F2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2B8E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B8E#FFFFFF#000000##FFFFFF
##7F2B8E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#36548C
Tritanopia (blue-blind)
#803C59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2b8e;
/* rgb */ color: rgb(127, 43, 142);
/* oklch */ color: oklch(45.6% 0.169 321.2);
Tailwind
colors: {
  custom: {
    50: '#a76caf',
    500: '#7f2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b8e;
$custom-light: #a76caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b8e",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 290.909,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.1688,
    "h": 321.2
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#7F2B8E
secondary
#6CB65F
accent
#DD4B61
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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