#7F2995#7F2995

#7F2995 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.178 H 318.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7F2995
RGBrgb(127, 41, 149)
HSLhsl(288, 57%, 37%)
HSVhsv(288, 72%, 58%)
CMYKcmyk(14.8%, 72.5%, 0%, 41.6%)
CIE-LABlab(34.54, 52.19, -41.90)
CIE-LCHlch(34.54, 66.93, 321.24°)
OKLaboklab(45.86% 0.1334 -0.1175)
OKLCHoklch(45.86% 0.178 318.6)
XYZxyz(14.9694, 8.2685, 29.2354)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2995 #3F9529
analogous
#492995 #7F2995 #952975
triadic
#7F2995 #957F29 #29957F
tetradic
#7F2995 #954929 #3F9529 #297595
square
#7F2995 #954929 #3F9529 #297595
split-complementary
#7F2995 #759529 #299549
monochromatic
#2D0F35 #561C65 #7F2995 #A836C5 #BD64D4

Accessibility & contrast

On white

7.91
#7F2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2995
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2995#FFFFFF#000000##FFFFFF
##7F29951.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#2F5493
Tritanopia (blue-blind)
#7F3E5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2995;
/* rgb */ color: rgb(127, 41, 149);
/* oklch */ color: oklch(45.9% 0.178 318.6);
Tailwind
colors: {
  custom: {
    50: '#a86bb5',
    500: '#7f2995',
    950: '#000000',
  },
}
SCSS
$custom: #7f2995;
$custom-light: #a86bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2995",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 287.778,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.17779,
    "h": 318.6
  },
  "luminance": 0.08268
}

Semantic roles & 50–950 ramp

primary
#7F2995
secondary
#72BA60
accent
#E04867
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2995

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

Preview Lab → · Contrast checker → · Palette generator →

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