#7F2896#7F2896

#7F2896 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.180 H 318.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7F2896
RGBrgb(127, 40, 150)
HSLhsl(287, 58%, 37%)
HSVhsv(287, 73%, 59%)
CMYKcmyk(15.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(34.46, 52.78, -42.62)
CIE-LCHlch(34.46, 67.85, 321.08°)
OKLaboklab(45.83% 0.1343 -0.1197)
OKLCHoklch(45.83% 0.18 318.3)
XYZxyz(15.0154, 8.2323, 29.6463)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2896 #3F9628
analogous
#482896 #7F2896 #962876
triadic
#7F2896 #967F28 #28967F
tetradic
#7F2896 #964828 #3F9628 #287696
square
#7F2896 #964828 #3F9628 #287696
split-complementary
#7F2896 #769628 #289648
monochromatic
#2D0E35 #561B66 #7F2896 #A835C6 #BD63D5

Accessibility & contrast

On white

7.94
#7F2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2896
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2896#FFFFFF#000000##FFFFFF
##7F28961.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#2D5493
Tritanopia (blue-blind)
#7E3E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2896;
/* rgb */ color: rgb(127, 40, 150);
/* oklch */ color: oklch(45.8% 0.180 318.3);
Tailwind
colors: {
  custom: {
    50: '#a86bb5',
    500: '#7f2896',
    950: '#000000',
  },
}
SCSS
$custom: #7f2896;
$custom-light: #a86bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2896",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 287.455,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45825,
    "c": 0.1799,
    "h": 318.3
  },
  "luminance": 0.08232
}

Semantic roles & 50–950 ramp

primary
#7F2896
secondary
#72BB5F
accent
#E14767
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2896

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

Preview Lab → · Contrast checker → · Palette generator →

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