#7F298F#7F298F

#7F298F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.172 H 320.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7F298F
RGBrgb(127, 41, 143)
HSLhsl(291, 55%, 36%)
HSVhsv(291, 71%, 56%)
CMYKcmyk(11.2%, 71.3%, 0%, 43.9%)
CIE-LABlab(34.15, 51.01, -38.83)
CIE-LCHlch(34.15, 64.11, 322.72°)
OKLaboklab(45.46% 0.1338 -0.1086)
OKLCHoklch(45.46% 0.172 320.9)
XYZxyz(14.5027, 8.0818, 26.7773)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F298F #398F29
analogous
#4C298F #7F298F #8F296C
triadic
#7F298F #8F7F29 #298F7F
tetradic
#7F298F #8F4C29 #398F29 #296C8F
square
#7F298F #8F4C29 #398F29 #296C8F
split-complementary
#7F298F #6C8F29 #298F4C
monochromatic
#2B0E30 #551B5F #7F298F #A937BF #C061D2

Accessibility & contrast

On white

8.03
#7F298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F298F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F298F#FFFFFF#000000##FFFFFF
##7F298F1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#34538D
Tritanopia (blue-blind)
#803C59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f298f;
/* rgb */ color: rgb(127, 41, 143);
/* oklch */ color: oklch(45.5% 0.172 320.9);
Tailwind
colors: {
  custom: {
    50: '#a76bb0',
    500: '#7f298f',
    950: '#000000',
  },
}
SCSS
$custom: #7f298f;
$custom-light: #a76bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f298f",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 290.588,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4546,
    "c": 0.17229,
    "h": 320.9
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#7F298F
secondary
#6BB75C
accent
#DF4961
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F298F

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

Preview Lab → · Contrast checker → · Palette generator →

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