#7F2E98#7F2E98

#7F2E98 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.174 H 317.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7F2E98
RGBrgb(127, 46, 152)
HSLhsl(286, 54%, 39%)
HSVhsv(286, 70%, 60%)
CMYKcmyk(16.4%, 69.7%, 0%, 40.4%)
CIE-LABlab(35.47, 50.72, -42.23)
CIE-LCHlch(35.47, 66.00, 320.22°)
OKLaboklab(46.58% 0.1278 -0.1186)
OKLCHoklch(46.58% 0.174 317.1)
XYZxyz(15.3961, 8.7336, 30.5744)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E98 #47982E
analogous
#4A2E98 #7F2E98 #982E7C
triadic
#7F2E98 #987F2E #2E987F
tetradic
#7F2E98 #984A2E #47982E #2E7C98
square
#7F2E98 #984A2E #47982E #2E7C98
split-complementary
#7F2E98 #7C982E #2E984A
monochromatic
#30123A #582069 #7F2E98 #A53EC5 #BB6DD3

Accessibility & contrast

On white

7.65
#7F2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E98
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E98#FFFFFF#000000##FFFFFF
##7F2E981.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#305696
Tritanopia (blue-blind)
#7E425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2e98;
/* rgb */ color: rgb(127, 46, 152);
/* oklch */ color: oklch(46.6% 0.174 317.1);
Tailwind
colors: {
  custom: {
    50: '#a76eb7',
    500: '#7f2e98',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e98;
$custom-light: #a76eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e98",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 285.849,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46584,
    "c": 0.1743,
    "h": 317.1
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#7F2E98
secondary
#7BBA68
accent
#DD4B6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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