#7D257E#7D257E

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

Color values

HEX#7D257E
RGBrgb(125, 37, 126)
HSLhsl(299, 55%, 32%)
HSVhsv(299, 71%, 49%)
CMYKcmyk(0.8%, 70.6%, 0%, 50.6%)
CIE-LABlab(32.24, 48.94, -31.36)
CIE-LCHlch(32.24, 58.12, 327.35°)
OKLaboklab(43.69% 0.136 -0.0868)
OKLCHoklch(43.69% 0.161 327.4)
XYZxyz(12.8847, 7.1904, 20.4439)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D257E #267E25
analogous
#51257E #7D257E #7E2553
triadic
#7D257E #7E7D25 #257E7D
tetradic
#7D257E #7E5125 #267E25 #25537E
square
#7D257E #7E5125 #267E25 #25537E
split-complementary
#7D257E #537E25 #257E51
monochromatic
#1F091F #4E174F #7D257E #AC33AD #CB51CC

Accessibility & contrast

On white

8.61
#7D257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7D257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D257E
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D257E#FFFFFF#000000##FFFFFF
##7D257E1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164581
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#81324E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d257e;
/* rgb */ color: rgb(125, 37, 126);
/* oklch */ color: oklch(43.7% 0.161 327.4);
Tailwind
colors: {
  custom: {
    50: '#a668a4',
    500: '#7d257e',
    950: '#000000',
  },
}
SCSS
$custom: #7d257e;
$custom-light: #a668a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d257e",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 299.326,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43691,
    "c": 0.16134,
    "h": 327.4
  },
  "luminance": 0.07189
}

Semantic roles & 50–950 ramp

primary
#7D257E
secondary
#50B04F
accent
#DE4A4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D257E

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

Preview Lab → · Contrast checker → · Palette generator →

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