#7E268D#7E268D

#7E268D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.174 H 321.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7E268D
RGBrgb(126, 38, 141)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 73%, 55%)
CMYKcmyk(10.6%, 73%, 0%, 44.7%)
CIE-LABlab(33.45, 51.58, -38.74)
CIE-LCHlch(33.45, 64.51, 323.09°)
OKLaboklab(44.88% 0.1358 -0.1083)
OKLCHoklch(44.88% 0.174 321.4)
XYZxyz(14.1045, 7.7457, 25.9463)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E268D #358D26
analogous
#4A268D #7E268D #8D2669
triadic
#7E268D #8D7E26 #268D7E
tetradic
#7E268D #8D4A26 #358D26 #26698D
square
#7E268D #8D4A26 #358D26 #26698D
split-complementary
#7E268D #698D26 #268D4A
monochromatic
#280C2D #53195D #7E268D #A933BD #C15BD3

Accessibility & contrast

On white

8.24
#7E268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E268D
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E268D#FFFFFF#000000##FFFFFF
##7E268D1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#7F3957
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e268d;
/* rgb */ color: rgb(126, 38, 141);
/* oklch */ color: oklch(44.9% 0.174 321.4);
Tailwind
colors: {
  custom: {
    50: '#a769af',
    500: '#7e268d',
    950: '#000000',
  },
}
SCSS
$custom: #7e268d;
$custom-light: #a769af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e268d",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 291.262,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44884,
    "c": 0.17372,
    "h": 321.4
  },
  "luminance": 0.07745
}

Semantic roles & 50–950 ramp

primary
#7E268D
secondary
#65B857
accent
#E1475D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E268D

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

Preview Lab → · Contrast checker → · Palette generator →

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