#7E258A#7E258A

#7E258A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.172 H 322.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7E258A
RGBrgb(126, 37, 138)
HSLhsl(293, 58%, 34%)
HSVhsv(293, 73%, 54%)
CMYKcmyk(8.7%, 73.2%, 0%, 45.9%)
CIE-LABlab(33.12, 51.39, -37.41)
CIE-LCHlch(33.12, 63.56, 323.95°)
OKLaboklab(44.59% 0.137 -0.1044)
OKLCHoklch(44.59% 0.172 322.7)
XYZxyz(13.8527, 7.5945, 24.7761)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E258A #318A25
analogous
#4C258A #7E258A #8A2564
triadic
#7E258A #8A7E25 #258A7E
tetradic
#7E258A #8A4C25 #318A25 #25648A
square
#7E258A #8A4C25 #318A25 #25648A
split-complementary
#7E258A #648A25 #258A4C
monochromatic
#260B29 #52185A #7E258A #AA32BA #C357D2

Accessibility & contrast

On white

8.34
#7E258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E258A
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E258A#FFFFFF#000000##FFFFFF
##7E258A1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#803755
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e258a;
/* rgb */ color: rgb(126, 37, 138);
/* oklch */ color: oklch(44.6% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7e258a',
    950: '#000000',
  },
}
SCSS
$custom: #7e258a;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e258a",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 292.871,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44592,
    "c": 0.17227,
    "h": 322.7
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

primary
#7E258A
secondary
#60B754
accent
#E14759
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E258A

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

Preview Lab → · Contrast checker → · Palette generator →

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