#7F2296#7F2296

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

Color values

HEX#7F2296
RGBrgb(127, 34, 150)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 77%, 59%)
CMYKcmyk(15.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(33.69, 55.00, -43.87)
CIE-LCHlch(33.69, 70.35, 321.42°)
OKLaboklab(45.28% 0.1401 -0.1233)
OKLCHoklch(45.28% 0.187 318.7)
XYZxyz(14.8287, 7.8588, 29.5841)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2296 #399622
analogous
#452296 #7F2296 #962273
triadic
#7F2296 #967F22 #22967F
tetradic
#7F2296 #964522 #399622 #227396
square
#7F2296 #964522 #399622 #227396
split-complementary
#7F2296 #739622 #229645
monochromatic
#2B0B32 #551764 #7F2296 #A92DC8 #C059D9

Accessibility & contrast

On white

8.17
#7F2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2296
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2296#FFFFFF#000000##FFFFFF
##7F22961.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#295293
Tritanopia (blue-blind)
#7F3B5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2296;
/* rgb */ color: rgb(127, 34, 150);
/* oklch */ color: oklch(45.3% 0.187 318.7);
Tailwind
colors: {
  custom: {
    50: '#a868b5',
    500: '#7f2296',
    950: '#000000',
  },
}
SCSS
$custom: #7f2296;
$custom-light: #a868b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2296",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 288.103,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45275,
    "c": 0.18662,
    "h": 318.7
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#7F2296
secondary
#6BBE56
accent
#E64262
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2296

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

Preview Lab → · Contrast checker → · Palette generator →

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