#7F2998#7F2998

#7F2998 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.181 H 317.5°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F2998
RGBrgb(127, 41, 152)
HSLhsl(286, 58%, 38%)
HSVhsv(286, 73%, 60%)
CMYKcmyk(16.4%, 73%, 0%, 40.4%)
CIE-LABlab(34.73, 52.79, -43.41)
CIE-LCHlch(34.73, 68.35, 320.57°)
OKLaboklab(46.06% 0.1331 -0.122)
OKLCHoklch(46.06% 0.181 317.5)
XYZxyz(15.2120, 8.3656, 30.5131)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2998 #429829
analogous
#472998 #7F2998 #98297A
triadic
#7F2998 #987F29 #29987F
tetradic
#7F2998 #984729 #429829 #297A98
square
#7F2998 #984729 #429829 #297A98
split-complementary
#7F2998 #7A9829 #299847
monochromatic
#2E0F38 #571C68 #7F2998 #A736C8 #BC66D6

Accessibility & contrast

On white

7.86
#7F2998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F2998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2998
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2998#FFFFFF#000000##FFFFFF
##7F29981.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#7E3F5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2998;
/* rgb */ color: rgb(127, 41, 152);
/* oklch */ color: oklch(46.1% 0.181 317.5);
Tailwind
colors: {
  custom: {
    50: '#a86bb7',
    500: '#7f2998',
    950: '#000000',
  },
}
SCSS
$custom: #7f2998;
$custom-light: #a86bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2998",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 286.486,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.18055,
    "h": 317.5
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#7F2998
secondary
#75BC61
accent
#E1476A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2998

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

Preview Lab → · Contrast checker → · Palette generator →

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