#7E2E85#7E2E85

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

Color values

HEX#7E2E85
RGBrgb(126, 46, 133)
HSLhsl(295, 49%, 35%)
HSVhsv(295, 65%, 52%)
CMYKcmyk(5.3%, 65.4%, 0%, 47.8%)
CIE-LABlab(34.16, 46.69, -32.67)
CIE-LCHlch(34.16, 56.98, 325.02°)
OKLaboklab(45.24% 0.1268 -0.0907)
OKLCHoklch(45.24% 0.156 324.4)
XYZxyz(13.8145, 8.0839, 23.0185)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E85 #35852E
analogous
#522E85 #7E2E85 #852E61
triadic
#7E2E85 #857E2E #2E857E
tetradic
#7E2E85 #85522E #35852E #2E6185
square
#7E2E85 #85522E #35852E #2E6185
split-complementary
#7E2E85 #61852E #2E8552
monochromatic
#280F2A #531E58 #7E2E85 #A93EB2 #C164C9

Accessibility & contrast

On white

8.03
#7E2E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2E85
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E85#FFFFFF#000000##FFFFFF
##7E2E851.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4A88
Deuteranopia (green-blind)
#3D5483
Tritanopia (blue-blind)
#813B55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2e85;
/* rgb */ color: rgb(126, 46, 133);
/* oklch */ color: oklch(45.2% 0.156 324.4);
Tailwind
colors: {
  custom: {
    50: '#a66da9',
    500: '#7e2e85',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e85;
$custom-light: #a66da9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e85",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 295.172,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45239,
    "c": 0.15587,
    "h": 324.4
  },
  "luminance": 0.08083
}

Semantic roles & 50–950 ramp

primary
#7E2E85
secondary
#65B05F
accent
#D8505B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E85

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

Preview Lab → · Contrast checker → · Palette generator →

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