#7F2E95#7F2E95

#7F2E95 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.171 H 318.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F2E95
RGBrgb(127, 46, 149)
HSLhsl(287, 53%, 38%)
HSVhsv(287, 69%, 58%)
CMYKcmyk(14.8%, 69.1%, 0%, 41.6%)
CIE-LABlab(35.27, 50.11, -40.71)
CIE-LCHlch(35.27, 64.56, 320.91°)
OKLaboklab(46.39% 0.1279 -0.1141)
OKLCHoklch(46.39% 0.171 318.3)
XYZxyz(15.1535, 8.6366, 29.2968)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E95 #44952E
analogous
#4B2E95 #7F2E95 #952E78
triadic
#7F2E95 #957F2E #2E957F
tetradic
#7F2E95 #954B2E #44952E #2E7895
square
#7F2E95 #954B2E #44952E #2E7895
split-complementary
#7F2E95 #78952E #2E954B
monochromatic
#2F1137 #572066 #7F2E95 #A63DC3 #BC6CD2

Accessibility & contrast

On white

7.70
#7F2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E95
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E95#FFFFFF#000000##FFFFFF
##7F2E951.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#335693
Tritanopia (blue-blind)
#7F415E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2e95;
/* rgb */ color: rgb(127, 46, 149);
/* oklch */ color: oklch(46.4% 0.171 318.3);
Tailwind
colors: {
  custom: {
    50: '#a76eb5',
    500: '#7f2e95',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e95;
$custom-light: #a76eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e95",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 287.184,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46386,
    "c": 0.17142,
    "h": 318.3
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#7F2E95
secondary
#78B966
accent
#DC4C6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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