#7F2297#7F2297

#7F2297 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.188 H 318.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7F2297
RGBrgb(127, 34, 151)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 77%, 59%)
CMYKcmyk(15.9%, 77.5%, 0%, 40.8%)
CIE-LABlab(33.76, 55.20, -44.37)
CIE-LCHlch(33.76, 70.82, 321.20°)
OKLaboklab(45.35% 0.14 -0.1247)
OKLCHoklch(45.35% 0.188 318.3)
XYZxyz(14.9096, 7.8911, 30.0099)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2297 #3A9722
analogous
#452297 #7F2297 #972275
triadic
#7F2297 #977F22 #22977F
tetradic
#7F2297 #974522 #3A9722 #227597
square
#7F2297 #974522 #3A9722 #227597
split-complementary
#7F2297 #759722 #229745
monochromatic
#2B0C33 #551765 #7F2297 #A92DC9 #BF5ADA

Accessibility & contrast

On white

8.15
#7F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2297
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2297#FFFFFF#000000##FFFFFF
##7F22971.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#285294
Tritanopia (blue-blind)
#7E3B5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2297;
/* rgb */ color: rgb(127, 34, 151);
/* oklch */ color: oklch(45.3% 0.188 318.3);
Tailwind
colors: {
  custom: {
    50: '#a868b6',
    500: '#7f2297',
    950: '#000000',
  },
}
SCSS
$custom: #7f2297;
$custom-light: #a868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2297",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 287.692,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45345,
    "c": 0.18751,
    "h": 318.3
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#7F2297
secondary
#6CBE57
accent
#E64263
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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