#7E268A#7E268A

#7E268A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.171 H 322.6°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7E268A
RGBrgb(126, 38, 138)
HSLhsl(293, 57%, 35%)
HSVhsv(293, 72%, 54%)
CMYKcmyk(8.7%, 72.5%, 0%, 45.9%)
CIE-LABlab(33.26, 51.00, -37.19)
CIE-LCHlch(33.26, 63.12, 323.90°)
OKLaboklab(44.69% 0.136 -0.1038)
OKLCHoklch(44.69% 0.171 322.6)
XYZxyz(13.8843, 7.6576, 24.7866)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E268A #328A26
analogous
#4C268A #7E268A #8A2664
triadic
#7E268A #8A7E26 #268A7E
tetradic
#7E268A #8A4C26 #328A26 #26648A
square
#7E268A #8A4C26 #328A26 #26648A
split-complementary
#7E268A #648A26 #268A4C
monochromatic
#260C2A #52195A #7E268A #AA33BA #C359D1

Accessibility & contrast

On white

8.30
#7E268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E268A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E268A#FFFFFF#000000##FFFFFF
##7E268A1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#803855
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e268a;
/* rgb */ color: rgb(126, 38, 138);
/* oklch */ color: oklch(44.7% 0.171 322.6);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7e268a',
    950: '#000000',
  },
}
SCSS
$custom: #7e268a;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e268a",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 292.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44689,
    "c": 0.17105,
    "h": 322.6
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#7E268A
secondary
#61B656
accent
#E0485A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E268A

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

Preview Lab → · Contrast checker → · Palette generator →

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