#7E2B88#7E2B88

#7E2B88 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.163 H 323.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7E2B88
RGBrgb(126, 43, 136)
HSLhsl(294, 52%, 35%)
HSVhsv(294, 68%, 53%)
CMYKcmyk(7.4%, 68.4%, 0%, 46.7%)
CIE-LABlab(33.86, 48.58, -34.99)
CIE-LCHlch(33.86, 59.87, 324.24°)
OKLaboklab(45.08% 0.1305 -0.0974)
OKLCHoklch(45.08% 0.163 323.2)
XYZxyz(13.9116, 7.9417, 24.0879)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B88 #35882B
analogous
#4F2B88 #7E2B88 #882B64
triadic
#7E2B88 #887E2B #2B887E
tetradic
#7E2B88 #884F2B #35882B #2B6488
square
#7E2B88 #884F2B #35882B #2B6488
split-complementary
#7E2B88 #64882B #2B884F
monochromatic
#280E2B #531C5A #7E2B88 #A93AB6 #C161CD

Accessibility & contrast

On white

8.11
#7E2B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E2B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B88
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B88#FFFFFF#000000##FFFFFF
##7E2B881.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498B
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#803A56
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2b88;
/* rgb */ color: rgb(126, 43, 136);
/* oklch */ color: oklch(45.1% 0.163 323.2);
Tailwind
colors: {
  custom: {
    50: '#a66bab',
    500: '#7e2b88',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b88;
$custom-light: #a66bab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b88",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 293.548,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45082,
    "c": 0.16281,
    "h": 323.2
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#7E2B88
secondary
#65B35C
accent
#DB4C5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B88

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

Preview Lab → · Contrast checker → · Palette generator →

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