#7E258E#7E258E

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

Color values

HEX#7E258E
RGBrgb(126, 37, 142)
HSLhsl(291, 59%, 35%)
HSVhsv(291, 74%, 56%)
CMYKcmyk(11.3%, 73.9%, 0%, 44.3%)
CIE-LABlab(33.38, 52.15, -39.47)
CIE-LCHlch(33.38, 65.40, 322.88°)
OKLaboklab(44.85% 0.1368 -0.1104)
OKLCHoklch(44.85% 0.176 321.1)
XYZxyz(14.1477, 7.7125, 26.3294)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E258E #358E25
analogous
#49258E #7E258E #8E256A
triadic
#7E258E #8E7E25 #258E7E
tetradic
#7E258E #8E4925 #358E25 #256A8E
square
#7E258E #8E4925 #358E25 #256A8E
split-complementary
#7E258E #6A8E25 #258E49
monochromatic
#280C2D #53185D #7E258E #A932BF #C15AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E258E#FFFFFF#000000##FFFFFF
##7E258E1.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)
#004891
Deuteranopia (green-blind)
#31528C
Tritanopia (blue-blind)
#7F3957
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e258e;
/* rgb */ color: rgb(126, 37, 142);
/* oklch */ color: oklch(44.9% 0.176 321.1);
Tailwind
colors: {
  custom: {
    50: '#a769b0',
    500: '#7e258e',
    950: '#000000',
  },
}
SCSS
$custom: #7e258e;
$custom-light: #a769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e258e",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 290.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44854,
    "c": 0.17581,
    "h": 321.1
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#7E258E
secondary
#65B956
accent
#E2465E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E258E

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

Preview Lab → · Contrast checker → · Palette generator →

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