#7E267A#7E267A

#7E267A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.157 H 329.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7E267A
RGBrgb(126, 38, 122)
HSLhsl(303, 54%, 32%)
HSVhsv(303, 70%, 49%)
CMYKcmyk(0%, 69.8%, 3.2%, 50.6%)
CIE-LABlab(32.32, 48.08, -28.70)
CIE-LCHlch(32.32, 55.99, 329.16°)
OKLaboklab(43.71% 0.1359 -0.0791)
OKLCHoklch(43.71% 0.157 329.8)
XYZxyz(12.8101, 7.2279, 19.1290)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E267A #267E2A
analogous
#56267E #7E267A #7E264E
triadic
#7E267A #7A7E26 #267A7E
tetradic
#7E267A #7E5626 #267E2A #264E7E
square
#7E267A #7E5626 #267E2A #264E7E
split-complementary
#7E267A #4E7E26 #267E56
monochromatic
#200A1F #4F184C #7E267A #AD34A8 #CB53C6

Accessibility & contrast

On white

8.59
#7E267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E267A
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E267A#FFFFFF#000000##FFFFFF
##7E267A1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D447C
Deuteranopia (green-blind)
#3F5078
Tritanopia (blue-blind)
#83314D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e267a;
/* rgb */ color: rgb(126, 38, 122);
/* oklch */ color: oklch(43.7% 0.157 329.8);
Tailwind
colors: {
  custom: {
    50: '#a669a1',
    500: '#7e267a',
    950: '#000000',
  },
}
SCSS
$custom: #7e267a;
$custom-light: #a669a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e267a",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 302.727,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43711,
    "c": 0.15722,
    "h": 329.8
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#7E267A
secondary
#50B054
accent
#DD514B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E267A

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

Preview Lab → · Contrast checker → · Palette generator →

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