#7F2F8A#7F2F8A

#7F2F8A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.160 H 322.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2F8A
RGBrgb(127, 47, 138)
HSLhsl(293, 49%, 36%)
HSVhsv(293, 66%, 54%)
CMYKcmyk(8%, 65.9%, 0%, 45.9%)
CIE-LABlab(34.76, 47.47, -34.78)
CIE-LCHlch(34.76, 58.85, 323.77°)
OKLaboklab(45.8% 0.1269 -0.0968)
OKLCHoklch(45.8% 0.16 322.7)
XYZxyz(14.3559, 8.3808, 24.9013)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F8A #3A8A2F
analogous
#522F8A #7F2F8A #8A2F68
triadic
#7F2F8A #8A7F2F #2F8A7F
tetradic
#7F2F8A #8A522F #3A8A2F #2F688A
square
#7F2F8A #8A522F #3A8A2F #2F688A
split-complementary
#7F2F8A #688A2F #2F8A52
monochromatic
#2B102F #551F5C #7F2F8A #A93FB8 #BF68CC

Accessibility & contrast

On white

7.85
#7F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F8A
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F8A#FFFFFF#000000##FFFFFF
##7F2F8A1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8D
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#813D58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2f8a;
/* rgb */ color: rgb(127, 47, 138);
/* oklch */ color: oklch(45.8% 0.160 322.7);
Tailwind
colors: {
  custom: {
    50: '#a76eac',
    500: '#7f2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f8a;
$custom-light: #a76eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f8a",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 292.747,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45802,
    "c": 0.15963,
    "h": 322.7
  },
  "luminance": 0.0838
}

Semantic roles & 50–950 ramp

primary
#7F2F8A
secondary
#6CB362
accent
#D94F60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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