#7E268B#7E268B

#7E268B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.172 H 322.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7E268B
RGBrgb(126, 38, 139)
HSLhsl(292, 57%, 35%)
HSVhsv(292, 73%, 55%)
CMYKcmyk(9.4%, 72.7%, 0%, 45.5%)
CIE-LABlab(33.32, 51.19, -37.71)
CIE-LCHlch(33.32, 63.58, 323.63°)
OKLaboklab(44.75% 0.1359 -0.1053)
OKLCHoklch(44.75% 0.172 322.2)
XYZxyz(13.9570, 7.6867, 25.1696)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E268B #338B26
analogous
#4B268B #7E268B #8B2666
triadic
#7E268B #8B7E26 #268B7E
tetradic
#7E268B #8B4B26 #338B26 #26668B
square
#7E268B #8B4B26 #338B26 #26668B
split-complementary
#7E268B #668B26 #268B4B
monochromatic
#270C2B #52195B #7E268B #AA33BB #C25AD2

Accessibility & contrast

On white

8.28
#7E268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E268B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E268B#FFFFFF#000000##FFFFFF
##7E268B1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#345289
Tritanopia (blue-blind)
#803856
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e268b;
/* rgb */ color: rgb(126, 38, 139);
/* oklch */ color: oklch(44.8% 0.172 322.2);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7e268b',
    950: '#000000',
  },
}
SCSS
$custom: #7e268b;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e268b",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 292.277,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44754,
    "c": 0.17194,
    "h": 322.2
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#7E268B
secondary
#63B756
accent
#E0475B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E268B

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

Preview Lab → · Contrast checker → · Palette generator →

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