#7F2F8F#7F2F8F

#7F2F8F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.164 H 320.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7F2F8F
RGBrgb(127, 47, 143)
HSLhsl(290, 51%, 37%)
HSVhsv(290, 67%, 56%)
CMYKcmyk(11.2%, 67.1%, 0%, 43.9%)
CIE-LABlab(35.06, 48.46, -37.38)
CIE-LCHlch(35.06, 61.20, 322.35°)
OKLaboklab(46.11% 0.1269 -0.1044)
OKLCHoklch(46.11% 0.164 320.6)
XYZxyz(14.7262, 8.5290, 26.8518)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F8F #3F8F2F
analogous
#4F2F8F #7F2F8F #8F2F6F
triadic
#7F2F8F #8F7F2F #2F8F7F
tetradic
#7F2F8F #8F4F2F #3F8F2F #2F6F8F
square
#7F2F8F #8F4F2F #3F8F2F #2F6F8F
split-complementary
#7F2F8F #6F8F2F #2F8F4F
monochromatic
#2D1133 #562061 #7F2F8F #A83EBD #BD6ACE

Accessibility & contrast

On white

7.76
#7F2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2F8F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F8F#FFFFFF#000000##FFFFFF
##7F2F8F1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124D92
Deuteranopia (green-blind)
#38558D
Tritanopia (blue-blind)
#803F5B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2f8f;
/* rgb */ color: rgb(127, 47, 143);
/* oklch */ color: oklch(46.1% 0.164 320.6);
Tailwind
colors: {
  custom: {
    50: '#a76eb0',
    500: '#7f2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f8f;
$custom-light: #a76eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f8f",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 290,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46113,
    "c": 0.16435,
    "h": 320.6
  },
  "luminance": 0.08528
}

Semantic roles & 50–950 ramp

primary
#7F2F8F
secondary
#72B565
accent
#DA4E65
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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