#7E257A#7E257A

#7E257A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.159 H 329.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E257A
RGBrgb(126, 37, 122)
HSLhsl(303, 55%, 32%)
HSVhsv(303, 71%, 49%)
CMYKcmyk(0%, 70.6%, 3.2%, 50.6%)
CIE-LABlab(32.18, 48.47, -28.93)
CIE-LCHlch(32.18, 56.45, 329.17°)
OKLaboklab(43.61% 0.137 -0.0798)
OKLCHoklch(43.61% 0.159 329.8)
XYZxyz(12.7785, 7.1648, 19.1185)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E257A #257E29
analogous
#56257E #7E257A #7E254D
triadic
#7E257A #7A7E25 #257A7E
tetradic
#7E257A #7E5625 #257E29 #254D7E
square
#7E257A #7E5625 #257E29 #254D7E
split-complementary
#7E257A #4D7E25 #257E56
monochromatic
#1F091E #4F174C #7E257A #AD33A8 #CC51C7

Accessibility & contrast

On white

8.63
#7E257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E257A
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E257A#FFFFFF#000000##FFFFFF
##7E257A1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447C
Deuteranopia (green-blind)
#3E5078
Tritanopia (blue-blind)
#83304C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e257a;
/* rgb */ color: rgb(126, 37, 122);
/* oklch */ color: oklch(43.6% 0.159 329.8);
Tailwind
colors: {
  custom: {
    50: '#a668a1',
    500: '#7e257a',
    950: '#000000',
  },
}
SCSS
$custom: #7e257a;
$custom-light: #a668a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e257a",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 302.697,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43609,
    "c": 0.15851,
    "h": 329.8
  },
  "luminance": 0.07164
}

Semantic roles & 50–950 ramp

primary
#7E257A
secondary
#4FB053
accent
#DE514A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E257A

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

Preview Lab → · Contrast checker → · Palette generator →

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