#7E2F83#7E2F83

#7E2F83 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.153 H 325.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E2F83
RGBrgb(126, 47, 131)
HSLhsl(296, 47%, 35%)
HSVhsv(296, 64%, 51%)
CMYKcmyk(3.8%, 64.1%, 0%, 48.6%)
CIE-LABlab(34.21, 45.86, -31.35)
CIE-LCHlch(34.21, 55.55, 325.65°)
OKLaboklab(45.24% 0.1254 -0.0868)
OKLCHoklch(45.24% 0.153 325.3)
XYZxyz(13.7171, 8.1082, 22.3109)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F83 #34832F
analogous
#542F83 #7E2F83 #832F5E
triadic
#7E2F83 #837E2F #2F837E
tetradic
#7E2F83 #83542F #34832F #2F5E83
square
#7E2F83 #83542F #34832F #2F5E83
split-complementary
#7E2F83 #5E832F #2F8354
monochromatic
#270F29 #531F56 #7E2F83 #A93FB0 #C265C8

Accessibility & contrast

On white

8.01
#7E2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F83
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F83#FFFFFF#000000##FFFFFF
##7E2F831.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214A86
Deuteranopia (green-blind)
#3F5481
Tritanopia (blue-blind)
#813B54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2f83;
/* rgb */ color: rgb(126, 47, 131);
/* oklch */ color: oklch(45.2% 0.153 325.3);
Tailwind
colors: {
  custom: {
    50: '#a66da7',
    500: '#7e2f83',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f83;
$custom-light: #a66da7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f83",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 296.429,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45238,
    "c": 0.15257,
    "h": 325.3
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

primary
#7E2F83
secondary
#64AF5F
accent
#D75159
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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