#7F298D#7F298D

#7F298D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.170 H 321.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7F298D
RGBrgb(127, 41, 141)
HSLhsl(292, 55%, 36%)
HSVhsv(292, 71%, 55%)
CMYKcmyk(9.9%, 70.9%, 0%, 44.7%)
CIE-LABlab(34.03, 50.62, -37.80)
CIE-LCHlch(34.03, 63.18, 323.25°)
OKLaboklab(45.33% 0.1338 -0.1056)
OKLCHoklch(45.33% 0.17 321.7)
XYZxyz(14.3525, 8.0218, 25.9865)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F298D #378D29
analogous
#4D298D #7F298D #8D2969
triadic
#7F298D #8D7F29 #298D7F
tetradic
#7F298D #8D4D29 #378D29 #29698D
square
#7F298D #8D4D29 #378D29 #29698D
split-complementary
#7F298D #698D29 #298D4D
monochromatic
#2A0D2E #541B5E #7F298D #AA37BC #C160D1

Accessibility & contrast

On white

8.06
#7F298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F298D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F298D#FFFFFF#000000##FFFFFF
##7F298D1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A90
Deuteranopia (green-blind)
#36538B
Tritanopia (blue-blind)
#803B58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f298d;
/* rgb */ color: rgb(127, 41, 141);
/* oklch */ color: oklch(45.3% 0.170 321.7);
Tailwind
colors: {
  custom: {
    50: '#a76baf',
    500: '#7f298d',
    950: '#000000',
  },
}
SCSS
$custom: #7f298d;
$custom-light: #a76baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f298d",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 291.6,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.17047,
    "h": 321.7
  },
  "luminance": 0.08021
}

Semantic roles & 50–950 ramp

primary
#7F298D
secondary
#68B65B
accent
#DE4A5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F298D

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

Preview Lab → · Contrast checker → · Palette generator →

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