#7E2F8A#7E2F8A

#7E2F8A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.159 H 322.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7E2F8A
RGBrgb(126, 47, 138)
HSLhsl(292, 49%, 36%)
HSVhsv(292, 66%, 54%)
CMYKcmyk(8.7%, 65.9%, 0%, 45.9%)
CIE-LABlab(34.61, 47.22, -35.04)
CIE-LCHlch(34.61, 58.80, 323.42°)
OKLaboklab(45.66% 0.1257 -0.0976)
OKLCHoklch(45.66% 0.159 322.2)
XYZxyz(14.2077, 8.3044, 24.8944)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F8A #3B8A2F
analogous
#512F8A #7E2F8A #8A2F69
triadic
#7E2F8A #8A7E2F #2F8A7E
tetradic
#7E2F8A #8A512F #3B8A2F #2F698A
square
#7E2F8A #8A512F #3B8A2F #2F698A
split-complementary
#7E2F8A #698A2F #2F8A51
monochromatic
#2B102F #541F5C #7E2F8A #A83FB8 #BE68CC

Accessibility & contrast

On white

7.89
#7E2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F8A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F8A#FFFFFF#000000##FFFFFF
##7E2F8A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#3B5488
Tritanopia (blue-blind)
#803E58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2f8a;
/* rgb */ color: rgb(126, 47, 138);
/* oklch */ color: oklch(45.7% 0.159 322.2);
Tailwind
colors: {
  custom: {
    50: '#a66eac',
    500: '#7e2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f8a;
$custom-light: #a66eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f8a",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 292.088,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45659,
    "c": 0.15912,
    "h": 322.2
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#7E2F8A
secondary
#6DB362
accent
#D94F61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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