#7E2B8F#7E2B8F

#7E2B8F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.169 H 320.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2B8F
RGBrgb(126, 43, 143)
HSLhsl(290, 54%, 36%)
HSVhsv(290, 70%, 56%)
CMYKcmyk(11.9%, 69.9%, 0%, 43.9%)
CIE-LABlab(34.29, 49.95, -38.63)
CIE-LCHlch(34.29, 63.14, 322.28°)
OKLaboklab(45.53% 0.1303 -0.108)
OKLCHoklch(45.53% 0.169 320.3)
XYZxyz(14.4254, 8.1473, 26.7940)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B8F #3C8F2B
analogous
#4C2B8F #7E2B8F #8F2B6E
triadic
#7E2B8F #8F7E2B #2B8F7E
tetradic
#7E2B8F #8F4C2B #3C8F2B #2B6E8F
square
#7E2B8F #8F4C2B #3C8F2B #2B6E8F
split-complementary
#7E2B8F #6E8F2B #2B8F4C
monochromatic
#2B0F31 #551D60 #7E2B8F #A739BE #BE64D0

Accessibility & contrast

On white

7.99
#7E2B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E2B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B8F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B8F#FFFFFF#000000##FFFFFF
##7E2B8F1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034B92
Deuteranopia (green-blind)
#34548D
Tritanopia (blue-blind)
#7F3D5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2b8f;
/* rgb */ color: rgb(126, 43, 143);
/* oklch */ color: oklch(45.5% 0.169 320.3);
Tailwind
colors: {
  custom: {
    50: '#a76cb0',
    500: '#7e2b8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b8f;
$custom-light: #a76cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b8f",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 289.8,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45525,
    "c": 0.16927,
    "h": 320.3
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#7E2B8F
secondary
#6EB75F
accent
#DD4B64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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