#7E2E9B#7E2E9B

#7E2E9B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.177 H 315.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7E2E9B
RGBrgb(126, 46, 155)
HSLhsl(284, 54%, 39%)
HSVhsv(284, 70%, 61%)
CMYKcmyk(18.7%, 70.3%, 0%, 39.2%)
CIE-LABlab(35.51, 51.12, -43.99)
CIE-LCHlch(35.51, 67.44, 319.29°)
OKLaboklab(46.65% 0.1263 -0.1237)
OKLCHoklch(46.65% 0.177 315.6)
XYZxyz(15.4966, 8.7567, 31.8779)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E9B #4B9B2E
analogous
#482E9B #7E2E9B #9B2E82
triadic
#7E2E9B #9B7E2E #2E9B7E
tetradic
#7E2E9B #9B482E #4B9B2E #2E829B
square
#7E2E9B #9B482E #4B9B2E #2E829B
split-complementary
#7E2E9B #829B2E #2E9B48
monochromatic
#31123D #58206C #7E2E9B #A340C6 #B96FD4

Accessibility & contrast

On white

7.63
#7E2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E9B
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E9B#FFFFFF#000000##FFFFFF
##7E2E9B1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#2C5699
Tritanopia (blue-blind)
#7C4461
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2e9b;
/* rgb */ color: rgb(126, 46, 155);
/* oklch */ color: oklch(46.6% 0.177 315.6);
Tailwind
colors: {
  custom: {
    50: '#a76eb9',
    500: '#7e2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e9b;
$custom-light: #a76eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e9b",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 284.037,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46649,
    "c": 0.17679,
    "h": 315.6
  },
  "luminance": 0.08756
}

Semantic roles & 50–950 ramp

primary
#7E2E9B
secondary
#7FBC69
accent
#DE4A71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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