#7E257E#7E257E

#7E257E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.162 H 327.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7E257E
RGBrgb(126, 37, 126)
HSLhsl(300, 55%, 32%)
HSVhsv(300, 71%, 49%)
CMYKcmyk(0%, 70.6%, 0%, 50.6%)
CIE-LABlab(32.41, 49.18, -31.08)
CIE-LCHlch(32.41, 58.18, 327.71°)
OKLaboklab(43.85% 0.1371 -0.086)
OKLCHoklch(43.85% 0.162 327.9)
XYZxyz(13.0315, 7.2660, 20.4507)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E257E #257E25
analogous
#52257E #7E257E #7E2552
triadic
#7E257E #7E7E25 #257E7E
tetradic
#7E257E #7E5225 #257E25 #25527E
square
#7E257E #7E5225 #257E25 #25527E
split-complementary
#7E257E #527E25 #257E52
monochromatic
#1F091F #4F174F #7E257E #AD33AD #CC51CC

Accessibility & contrast

On white

8.56
#7E257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E257E
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E257E#FFFFFF#000000##FFFFFF
##7E257E1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#3C507C
Tritanopia (blue-blind)
#82324F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e257e;
/* rgb */ color: rgb(126, 37, 126);
/* oklch */ color: oklch(43.8% 0.162 327.9);
Tailwind
colors: {
  custom: {
    50: '#a668a4',
    500: '#7e257e',
    950: '#000000',
  },
}
SCSS
$custom: #7e257e;
$custom-light: #a668a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e257e",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43845,
    "c": 0.16187,
    "h": 327.9
  },
  "luminance": 0.07265
}

Semantic roles & 50–950 ramp

primary
#7E257E
secondary
#4FB04F
accent
#DE4A4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E257E

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

Preview Lab → · Contrast checker → · Palette generator →

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