#7E267E#7E267E

#7E267E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.161 H 327.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7E267E
RGBrgb(126, 38, 126)
HSLhsl(300, 54%, 32%)
HSVhsv(300, 70%, 49%)
CMYKcmyk(0%, 69.8%, 0%, 50.6%)
CIE-LABlab(32.54, 48.79, -30.86)
CIE-LCHlch(32.54, 57.73, 327.69°)
OKLaboklab(43.95% 0.136 -0.0854)
OKLCHoklch(43.95% 0.161 327.9)
XYZxyz(13.0630, 7.3291, 20.4612)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E267E #267E26
analogous
#52267E #7E267E #7E2652
triadic
#7E267E #7E7E26 #267E7E
tetradic
#7E267E #7E5226 #267E26 #26527E
square
#7E267E #7E5226 #267E26 #26527E
split-complementary
#7E267E #527E26 #267E52
monochromatic
#200A20 #4F184F #7E267E #AD34AD #CB53CB

Accessibility & contrast

On white

8.52
#7E267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E267E
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E267E#FFFFFF#000000##FFFFFF
##7E267E1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194581
Deuteranopia (green-blind)
#3C517C
Tritanopia (blue-blind)
#82324F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e267e;
/* rgb */ color: rgb(126, 38, 126);
/* oklch */ color: oklch(43.9% 0.161 327.9);
Tailwind
colors: {
  custom: {
    50: '#a669a4',
    500: '#7e267e',
    950: '#000000',
  },
}
SCSS
$custom: #7e267e;
$custom-light: #a669a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e267e",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43946,
    "c": 0.16059,
    "h": 327.9
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#7E267E
secondary
#50B050
accent
#DD4B4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E267E

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

Preview Lab → · Contrast checker → · Palette generator →

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