#7F298E#7F298E

#7F298E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.171 H 321.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7F298E
RGBrgb(127, 41, 142)
HSLhsl(291, 55%, 36%)
HSVhsv(291, 71%, 56%)
CMYKcmyk(10.6%, 71.1%, 0%, 44.3%)
CIE-LABlab(34.09, 50.81, -38.32)
CIE-LCHlch(34.09, 63.64, 322.98°)
OKLaboklab(45.4% 0.1338 -0.1071)
OKLCHoklch(45.4% 0.171 321.3)
XYZxyz(14.4273, 8.0517, 26.3801)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F298E #388E29
analogous
#4C298E #7F298E #8E296A
triadic
#7F298E #8E7F29 #298E7F
tetradic
#7F298E #8E4C29 #388E29 #296A8E
square
#7F298E #8E4C29 #388E29 #296A8E
split-complementary
#7F298E #6A8E29 #298E4C
monochromatic
#2A0E2F #551B5F #7F298E #A937BD #C060D1

Accessibility & contrast

On white

8.05
#7F298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F298E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F298E#FFFFFF#000000##FFFFFF
##7F298E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#35538C
Tritanopia (blue-blind)
#803B58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f298e;
/* rgb */ color: rgb(127, 41, 142);
/* oklch */ color: oklch(45.4% 0.171 321.3);
Tailwind
colors: {
  custom: {
    50: '#a76baf',
    500: '#7f298e',
    950: '#000000',
  },
}
SCSS
$custom: #7f298e;
$custom-light: #a76baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f298e",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 291.089,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45396,
    "c": 0.17137,
    "h": 321.3
  },
  "luminance": 0.08051
}

Semantic roles & 50–950 ramp

primary
#7F298E
secondary
#69B75C
accent
#DF495F
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F298E

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

Preview Lab → · Contrast checker → · Palette generator →

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