#7E268E#7E268E

#7E268E is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.175 H 321.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7E268E
RGBrgb(126, 38, 142)
HSLhsl(291, 58%, 35%)
HSVhsv(291, 73%, 56%)
CMYKcmyk(11.3%, 73.2%, 0%, 44.3%)
CIE-LABlab(33.51, 51.77, -39.25)
CIE-LCHlch(33.51, 64.97, 322.83°)
OKLaboklab(44.95% 0.1358 -0.1098)
OKLCHoklch(44.95% 0.175 321)
XYZxyz(14.1792, 7.7756, 26.3399)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E268E #368E26
analogous
#4A268E #7E268E #8E266A
triadic
#7E268E #8E7E26 #268E7E
tetradic
#7E268E #8E4A26 #368E26 #266A8E
square
#7E268E #8E4A26 #368E26 #266A8E
split-complementary
#7E268E #6A8E26 #268E4A
monochromatic
#280C2D #53195E #7E268E #A933BE #C15BD3

Accessibility & contrast

On white

8.22
#7E268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E268E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E268E#FFFFFF#000000##FFFFFF
##7E268E1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#7F3958
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e268e;
/* rgb */ color: rgb(126, 38, 142);
/* oklch */ color: oklch(45.0% 0.175 321.0);
Tailwind
colors: {
  custom: {
    50: '#a769b0',
    500: '#7e268e',
    950: '#000000',
  },
}
SCSS
$custom: #7e268e;
$custom-light: #a769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e268e",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 290.769,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4495,
    "c": 0.17462,
    "h": 321
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#7E268E
secondary
#67B858
accent
#E1475F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E268E

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

Preview Lab → · Contrast checker → · Palette generator →

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