#7F2295#7F2295

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

Color values

HEX#7F2295
RGBrgb(127, 34, 149)
HSLhsl(289, 63%, 36%)
HSVhsv(289, 77%, 58%)
CMYKcmyk(14.8%, 77.2%, 0%, 41.6%)
CIE-LABlab(33.62, 54.81, -43.37)
CIE-LCHlch(33.62, 69.89, 321.65°)
OKLaboklab(45.21% 0.1402 -0.1218)
OKLCHoklch(45.21% 0.186 319)
XYZxyz(14.7485, 7.8267, 29.1618)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2295 #389522
analogous
#452295 #7F2295 #952271
triadic
#7F2295 #957F22 #22957F
tetradic
#7F2295 #954522 #389522 #227195
square
#7F2295 #954522 #389522 #227195
split-complementary
#7F2295 #719522 #229545
monochromatic
#2A0B31 #551763 #7F2295 #A92DC7 #C058D9

Accessibility & contrast

On white

8.19
#7F2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2295
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2295#FFFFFF#000000##FFFFFF
##7F22951.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#2A5292
Tritanopia (blue-blind)
#7F3A5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2295;
/* rgb */ color: rgb(127, 34, 149);
/* oklch */ color: oklch(45.2% 0.186 319.0);
Tailwind
colors: {
  custom: {
    50: '#a868b5',
    500: '#7f2295',
    950: '#000000',
  },
}
SCSS
$custom: #7f2295;
$custom-light: #a868b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2295",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 288.522,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45205,
    "c": 0.18576,
    "h": 319
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#7F2295
secondary
#69BD56
accent
#E64261
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2295

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

Preview Lab → · Contrast checker → · Palette generator →

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