#7F2C83#7F2C83

#7F2C83 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.0% C 0.157 H 325.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7F2C83
RGBrgb(127, 44, 131)
HSLhsl(297, 50%, 34%)
HSVhsv(297, 66%, 51%)
CMYKcmyk(3.1%, 66.4%, 0%, 48.6%)
CIE-LABlab(33.88, 47.45, -31.85)
CIE-LCHlch(33.88, 57.15, 326.13°)
OKLaboklab(45.04% 0.1304 -0.0882)
OKLCHoklch(45.04% 0.157 325.9)
XYZxyz(13.7495, 7.9529, 22.2792)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C83 #30832C
analogous
#542C83 #7F2C83 #832C5C
triadic
#7F2C83 #837F2C #2C837F
tetradic
#7F2C83 #83542C #30832C #2C5C83
square
#7F2C83 #83542C #30832C #2C5C83
split-complementary
#7F2C83 #5C832C #2C8354
monochromatic
#260D27 #531D55 #7F2C83 #AB3BB1 #C560CA

Accessibility & contrast

On white

8.11
#7F2C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2C83
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C83#FFFFFF#000000##FFFFFF
##7F2C831.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4986
Deuteranopia (green-blind)
#3E5381
Tritanopia (blue-blind)
#823953
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2c83;
/* rgb */ color: rgb(127, 44, 131);
/* oklch */ color: oklch(45.0% 0.157 325.9);
Tailwind
colors: {
  custom: {
    50: '#a76ca7',
    500: '#7f2c83',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c83;
$custom-light: #a76ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c83",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 297.241,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45037,
    "c": 0.15742,
    "h": 325.9
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#7F2C83
secondary
#5FB05B
accent
#D94F55
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2C83

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

Preview Lab → · Contrast checker → · Palette generator →

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