#7E257D#7E257D

#7E257D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.161 H 328.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7E257D
RGBrgb(126, 37, 125)
HSLhsl(301, 55%, 32%)
HSVhsv(301, 71%, 49%)
CMYKcmyk(0%, 70.6%, 0.8%, 50.6%)
CIE-LABlab(32.35, 49.00, -30.54)
CIE-LCHlch(32.35, 57.74, 328.06°)
OKLaboklab(43.79% 0.1371 -0.0844)
OKLCHoklch(43.79% 0.161 328.4)
XYZxyz(12.9673, 7.2403, 20.1126)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E257D #257E26
analogous
#53257E #7E257D #7E2551
triadic
#7E257D #7D7E25 #257D7E
tetradic
#7E257D #7E5325 #257E26 #25517E
square
#7E257D #7E5325 #257E26 #25517E
split-complementary
#7E257D #517E25 #257E53
monochromatic
#1F091F #4F174E #7E257D #AD33AC #CC51CB

Accessibility & contrast

On white

8.58
#7E257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E257D
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E257D#FFFFFF#000000##FFFFFF
##7E257D1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#82314E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e257d;
/* rgb */ color: rgb(126, 37, 125);
/* oklch */ color: oklch(43.8% 0.161 328.4);
Tailwind
colors: {
  custom: {
    50: '#a668a3',
    500: '#7e257d',
    950: '#000000',
  },
}
SCSS
$custom: #7e257d;
$custom-light: #a668a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e257d",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 300.674,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43785,
    "c": 0.16103,
    "h": 328.4
  },
  "luminance": 0.07239
}

Semantic roles & 50–950 ramp

primary
#7E257D
secondary
#4FB050
accent
#DE4C4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E257D

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

Preview Lab → · Contrast checker → · Palette generator →

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