#7F2F97#7F2F97

#7F2F97 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.172 H 317.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7F2F97
RGBrgb(127, 47, 151)
HSLhsl(286, 53%, 39%)
HSVhsv(286, 69%, 59%)
CMYKcmyk(15.9%, 68.9%, 0%, 40.8%)
CIE-LABlab(35.56, 50.08, -41.48)
CIE-LCHlch(35.56, 65.03, 320.37°)
OKLaboklab(46.63% 0.1267 -0.1164)
OKLCHoklch(46.63% 0.172 317.4)
XYZxyz(15.3540, 8.7801, 30.1581)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F97 #47972F
analogous
#4B2F97 #7F2F97 #972F7B
triadic
#7F2F97 #977F2F #2F977F
tetradic
#7F2F97 #974B2F #47972F #2F7B97
square
#7F2F97 #974B2F #47972F #2F7B97
split-complementary
#7F2F97 #7B972F #2F974B
monochromatic
#30123A #582068 #7F2F97 #A540C3 #BB6ED2

Accessibility & contrast

On white

7.62
#7F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F97
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F97#FFFFFF#000000##FFFFFF
##7F2F971.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#325695
Tritanopia (blue-blind)
#7E435F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2f97;
/* rgb */ color: rgb(127, 47, 151);
/* oklch */ color: oklch(46.6% 0.172 317.4);
Tailwind
colors: {
  custom: {
    50: '#a76eb6',
    500: '#7f2f97',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f97;
$custom-light: #a76eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f97",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 286.154,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46629,
    "c": 0.17201,
    "h": 317.4
  },
  "luminance": 0.08779
}

Semantic roles & 50–950 ramp

primary
#7F2F97
secondary
#7BB968
accent
#DC4C6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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