#7F2099#7F2099

#7F2099 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.191 H 317.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7F2099
RGBrgb(127, 32, 153)
HSLhsl(287, 65%, 36%)
HSVhsv(287, 79%, 60%)
CMYKcmyk(17%, 79.1%, 0%, 40%)
CIE-LABlab(33.66, 56.26, -45.75)
CIE-LCHlch(33.66, 72.51, 320.88°)
OKLaboklab(45.32% 0.1415 -0.1288)
OKLCHoklch(45.32% 0.191 317.7)
XYZxyz(15.0178, 7.8456, 30.8541)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2099 #3A9920
analogous
#432099 #7F2099 #992077
triadic
#7F2099 #997F20 #20997F
tetradic
#7F2099 #994320 #3A9920 #207799
square
#7F2099 #994320 #3A9920 #207799
split-complementary
#7F2099 #779920 #209943
monochromatic
#2B0B34 #551566 #7F2099 #A92BCC #BF57DC

Accessibility & contrast

On white

8.17
#7F2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2099
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2099#FFFFFF#000000##FFFFFF
##7F20991.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#245296
Tritanopia (blue-blind)
#7E3B5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2099;
/* rgb */ color: rgb(127, 32, 153);
/* oklch */ color: oklch(45.3% 0.191 317.7);
Tailwind
colors: {
  custom: {
    50: '#a867b8',
    500: '#7f2099',
    950: '#000000',
  },
}
SCSS
$custom: #7f2099;
$custom-light: #a867b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2099",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 287.107,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.19128,
    "h": 317.7
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#7F2099
secondary
#6CC055
accent
#E83F64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2099

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

Preview Lab → · Contrast checker → · Palette generator →

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