#7E2B7F#7E2B7F

#7E2B7F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.155 H 327.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E2B7F
RGBrgb(126, 43, 127)
HSLhsl(299, 49%, 33%)
HSVhsv(299, 66%, 50%)
CMYKcmyk(0.8%, 66.1%, 0%, 50.2%)
CIE-LABlab(33.34, 46.89, -30.22)
CIE-LCHlch(33.34, 55.78, 327.20°)
OKLaboklab(44.54% 0.1302 -0.0836)
OKLCHoklch(44.54% 0.155 327.3)
XYZxyz(13.2986, 7.6966, 20.8597)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B7F #2C7F2B
analogous
#542B7F #7E2B7F #7F2B56
triadic
#7E2B7F #7F7E2B #2B7F7E
tetradic
#7E2B7F #7F542B #2C7F2B #2B567F
square
#7E2B7F #7F542B #2C7F2B #2B567F
split-complementary
#7E2B7F #567F2B #2B7F54
monochromatic
#230C24 #511C51 #7E2B7F #AB3AAD #C75CC8

Accessibility & contrast

On white

8.27
#7E2B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B7F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B7F#FFFFFF#000000##FFFFFF
##7E2B7F1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4881
Deuteranopia (green-blind)
#3F527D
Tritanopia (blue-blind)
#823651
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2b7f;
/* rgb */ color: rgb(126, 43, 127);
/* oklch */ color: oklch(44.5% 0.155 327.3);
Tailwind
colors: {
  custom: {
    50: '#a66ba4',
    500: '#7e2b7f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b7f;
$custom-light: #a66ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b7f",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 299.286,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4454,
    "c": 0.15471,
    "h": 327.3
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#7E2B7F
secondary
#59AE58
accent
#D94F50
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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