#7F2299#7F2299

#7F2299 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.189 H 317.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7F2299
RGBrgb(127, 34, 153)
HSLhsl(287, 64%, 37%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(17%, 77.8%, 0%, 40%)
CIE-LABlab(33.89, 55.59, -45.37)
CIE-LCHlch(33.89, 71.75, 320.78°)
OKLaboklab(45.49% 0.1397 -0.1277)
OKLCHoklch(45.49% 0.189 317.6)
XYZxyz(15.0734, 7.9567, 30.8726)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2299 #3C9922
analogous
#442299 #7F2299 #992278
triadic
#7F2299 #997F22 #22997F
tetradic
#7F2299 #994422 #3C9922 #227899
square
#7F2299 #994422 #3C9922 #227899
split-complementary
#7F2299 #789922 #229944
monochromatic
#2C0C35 #551767 #7F2299 #A92DCB #BF5BDB

Accessibility & contrast

On white

8.10
#7F2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2299
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2299#FFFFFF#000000##FFFFFF
##7F22991.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#265296
Tritanopia (blue-blind)
#7E3C5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2299;
/* rgb */ color: rgb(127, 34, 153);
/* oklch */ color: oklch(45.5% 0.189 317.6);
Tailwind
colors: {
  custom: {
    50: '#a868b8',
    500: '#7f2299',
    950: '#000000',
  },
}
SCSS
$custom: #7f2299;
$custom-light: #a868b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2299",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 286.891,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45486,
    "c": 0.18927,
    "h": 317.6
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#7F2299
secondary
#6EBF58
accent
#E74165
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2299

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

Preview Lab → · Contrast checker → · Palette generator →

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