#7E269A#7E269A

#7E269A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.185 H 316.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7E269A
RGBrgb(126, 38, 154)
HSLhsl(286, 60%, 38%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(18.2%, 75.3%, 0%, 39.6%)
CIE-LABlab(34.30, 54.14, -45.32)
CIE-LCHlch(34.30, 70.61, 320.07°)
OKLaboklab(45.77% 0.1346 -0.1276)
OKLCHoklch(45.77% 0.185 316.5)
XYZxyz(15.1291, 8.1556, 31.3428)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E269A #429A26
analogous
#44269A #7E269A #9A267C
triadic
#7E269A #9A7E26 #269A7E
tetradic
#7E269A #9A4426 #429A26 #267C9A
square
#7E269A #9A4426 #429A26 #267C9A
split-complementary
#7E269A #7C9A26 #269A44
monochromatic
#2E0E38 #561A69 #7E269A #A632CB #BC62D8

Accessibility & contrast

On white

7.98
#7E269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E269A
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E269A#FFFFFF#000000##FFFFFF
##7E269A1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#265397
Tritanopia (blue-blind)
#7C3F5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e269a;
/* rgb */ color: rgb(126, 38, 154);
/* oklch */ color: oklch(45.8% 0.185 316.5);
Tailwind
colors: {
  custom: {
    50: '#a76ab8',
    500: '#7e269a',
    950: '#000000',
  },
}
SCSS
$custom: #7e269a;
$custom-light: #a76ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e269a",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 285.517,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45768,
    "c": 0.18548,
    "h": 316.5
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#7E269A
secondary
#75BE5E
accent
#E4446B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E269A

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

Preview Lab → · Contrast checker → · Palette generator →

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