#7F2097#7F2097

#7F2097 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.190 H 318.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2097
RGBrgb(127, 32, 151)
HSLhsl(288, 65%, 36%)
HSVhsv(288, 79%, 59%)
CMYKcmyk(15.9%, 78.8%, 0%, 40.8%)
CIE-LABlab(33.52, 55.87, -44.75)
CIE-LCHlch(33.52, 71.58, 321.31°)
OKLaboklab(45.18% 0.1417 -0.1258)
OKLCHoklch(45.18% 0.19 318.4)
XYZxyz(14.8541, 7.7801, 29.9914)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2097 #389720
analogous
#432097 #7F2097 #972073
triadic
#7F2097 #977F20 #20977F
tetradic
#7F2097 #974320 #389720 #207397
square
#7F2097 #974320 #389720 #207397
split-complementary
#7F2097 #739720 #209743
monochromatic
#2A0B32 #551564 #7F2097 #A92BC9 #C056DB

Accessibility & contrast

On white

8.22
#7F2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2097
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2097#FFFFFF#000000##FFFFFF
##7F20971.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#275294
Tritanopia (blue-blind)
#7E3A5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2097;
/* rgb */ color: rgb(127, 32, 151);
/* oklch */ color: oklch(45.2% 0.190 318.4);
Tailwind
colors: {
  custom: {
    50: '#a867b6',
    500: '#7f2097',
    950: '#000000',
  },
}
SCSS
$custom: #7f2097;
$custom-light: #a867b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2097",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 287.899,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45179,
    "c": 0.18954,
    "h": 318.4
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#7F2097
secondary
#69BF54
accent
#E84062
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2097

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

Preview Lab → · Contrast checker → · Palette generator →

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