#7F2E85#7F2E85

#7F2E85 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.156 H 324.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7F2E85
RGBrgb(127, 46, 133)
HSLhsl(296, 49%, 35%)
HSVhsv(296, 65%, 52%)
CMYKcmyk(4.5%, 65.4%, 0%, 47.8%)
CIE-LABlab(34.31, 46.95, -32.41)
CIE-LCHlch(34.31, 57.05, 325.39°)
OKLaboklab(45.38% 0.128 -0.0899)
OKLCHoklch(45.38% 0.156 324.9)
XYZxyz(13.9627, 8.1603, 23.0254)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E85 #34852E
analogous
#532E85 #7F2E85 #852E5F
triadic
#7F2E85 #857F2E #2E857F
tetradic
#7F2E85 #85532E #34852E #2E5F85
square
#7F2E85 #85532E #34852E #2E5F85
split-complementary
#7F2E85 #5F852E #2E8553
monochromatic
#280F2A #541E58 #7F2E85 #AA3EB2 #C264C9

Accessibility & contrast

On white

7.98
#7F2E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F2E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E85
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E85#FFFFFF#000000##FFFFFF
##7F2E851.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4A88
Deuteranopia (green-blind)
#3E5483
Tritanopia (blue-blind)
#823B55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2e85;
/* rgb */ color: rgb(127, 46, 133);
/* oklch */ color: oklch(45.4% 0.156 324.9);
Tailwind
colors: {
  custom: {
    50: '#a76da9',
    500: '#7f2e85',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e85;
$custom-light: #a76da9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e85",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 295.862,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45384,
    "c": 0.15641,
    "h": 324.9
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#7F2E85
secondary
#64B05F
accent
#D85059
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2E85

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

Preview Lab → · Contrast checker → · Palette generator →

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