#7D257D#7D257D

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

Color values

HEX#7D257D
RGBrgb(125, 37, 125)
HSLhsl(300, 54%, 32%)
HSVhsv(300, 70%, 49%)
CMYKcmyk(0%, 70.4%, 0%, 51%)
CIE-LABlab(32.18, 48.76, -30.82)
CIE-LCHlch(32.18, 57.68, 327.70°)
OKLaboklab(43.63% 0.1359 -0.0853)
OKLCHoklch(43.63% 0.16 327.9)
XYZxyz(12.8205, 7.1647, 20.1057)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D257D #257D25
analogous
#51257D #7D257D #7D2551
triadic
#7D257D #7D7D25 #257D7D
tetradic
#7D257D #7D5125 #257D25 #25517D
square
#7D257D #7D5125 #257D25 #25517D
split-complementary
#7D257D #517D25 #257D51
monochromatic
#1F091F #4E174E #7D257D #AC33AC #CB51CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D257D#FFFFFF#000000##FFFFFF
##7D257D1.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)
#174480
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#81324E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d257d;
/* rgb */ color: rgb(125, 37, 125);
/* oklch */ color: oklch(43.6% 0.160 327.9);
Tailwind
colors: {
  custom: {
    50: '#a668a3',
    500: '#7d257d',
    950: '#000000',
  },
}
SCSS
$custom: #7d257d;
$custom-light: #a668a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d257d",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43631,
    "c": 0.16048,
    "h": 327.9
  },
  "luminance": 0.07164
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D257D

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

Preview Lab → · Contrast checker → · Palette generator →

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