#7F2B99#7F2B99

#7F2B99 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.179 H 317.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7F2B99
RGBrgb(127, 43, 153)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 60%)
CMYKcmyk(17%, 71.9%, 0%, 40%)
CIE-LABlab(35.08, 52.19, -43.45)
CIE-LCHlch(35.08, 67.91, 320.22°)
OKLaboklab(46.33% 0.131 -0.1221)
OKLCHoklch(46.33% 0.179 317)
XYZxyz(15.3652, 8.5403, 30.9699)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B99 #45992B
analogous
#482B99 #7F2B99 #992B7C
triadic
#7F2B99 #997F2B #2B997F
tetradic
#7F2B99 #99482B #45992B #2B7C99
square
#7F2B99 #99482B #45992B #2B7C99
split-complementary
#7F2B99 #7C992B #2B9948
monochromatic
#301039 #571E69 #7F2B99 #A63AC8 #BC69D5

Accessibility & contrast

On white

7.75
#7F2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B99
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B99#FFFFFF#000000##FFFFFF
##7F2B991.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#7E415F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2b99;
/* rgb */ color: rgb(127, 43, 153);
/* oklch */ color: oklch(46.3% 0.179 317.0);
Tailwind
colors: {
  custom: {
    50: '#a86cb8',
    500: '#7f2b99',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b99;
$custom-light: #a86cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b99",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 285.818,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46332,
    "c": 0.17906,
    "h": 317
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#7F2B99
secondary
#79BC64
accent
#DF486C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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