#7E268C#7E268C

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

Color values

HEX#7E268C
RGBrgb(126, 38, 140)
HSLhsl(292, 57%, 35%)
HSVhsv(292, 73%, 55%)
CMYKcmyk(10%, 72.9%, 0%, 45.1%)
CIE-LABlab(33.38, 51.39, -38.22)
CIE-LCHlch(33.38, 64.04, 323.36°)
OKLaboklab(44.82% 0.1359 -0.1068)
OKLCHoklch(44.82% 0.173 321.8)
XYZxyz(14.0304, 7.7161, 25.5562)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E268C #348C26
analogous
#4B268C #7E268C #8C2667
triadic
#7E268C #8C7E26 #268C7E
tetradic
#7E268C #8C4B26 #348C26 #26678C
square
#7E268C #8C4B26 #348C26 #26678C
split-complementary
#7E268C #678C26 #268C4B
monochromatic
#270C2C #53195C #7E268C #A933BC #C25AD2

Accessibility & contrast

On white

8.26
#7E268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E268C
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E268C#FFFFFF#000000##FFFFFF
##7E268C1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#7F3956
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e268c;
/* rgb */ color: rgb(126, 38, 140);
/* oklch */ color: oklch(44.8% 0.173 321.8);
Tailwind
colors: {
  custom: {
    50: '#a769ae',
    500: '#7e268c',
    950: '#000000',
  },
}
SCSS
$custom: #7e268c;
$custom-light: #a769ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e268c",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 291.765,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44818,
    "c": 0.17283,
    "h": 321.8
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#7E268C
secondary
#64B757
accent
#E1475C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E268C

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

Preview Lab → · Contrast checker → · Palette generator →

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