#7D256F#7D256F

#7D256F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.149 H 334.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7D256F
RGBrgb(125, 37, 111)
HSLhsl(310, 54%, 32%)
HSVhsv(310, 70%, 49%)
CMYKcmyk(0%, 70.4%, 11.2%, 51%)
CIE-LABlab(31.42, 46.35, -23.17)
CIE-LCHlch(31.42, 51.82, 333.44°)
OKLaboklab(42.84% 0.1349 -0.0632)
OKLCHoklch(42.84% 0.149 334.9)
XYZxyz(11.9884, 6.8318, 15.7231)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D256F #257D33
analogous
#5F257D #7D256F #7D2543
triadic
#7D256F #6F7D25 #256F7D
tetradic
#7D256F #7D5F25 #257D33 #25437D
square
#7D256F #7D5F25 #257D33 #25437D
split-complementary
#7D256F #437D25 #257D5F
monochromatic
#1F091B #4E1745 #7D256F #AC3399 #CB51B8

Accessibility & contrast

On white

8.87
#7D256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D256F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D256F#FFFFFF#000000##FFFFFF
##7D256F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254271
Deuteranopia (green-blind)
#424F6D
Tritanopia (blue-blind)
#832B46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d256f;
/* rgb */ color: rgb(125, 37, 111);
/* oklch */ color: oklch(42.8% 0.149 334.9);
Tailwind
colors: {
  custom: {
    50: '#a66898',
    500: '#7d256f',
    950: '#000000',
  },
}
SCSS
$custom: #7d256f;
$custom-light: #a66898;
$custom-dark: #000000;
JSON
{
  "hex": "#7d256f",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 309.545,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42837,
    "c": 0.149,
    "h": 334.9
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#7D256F
secondary
#4FAF5E
accent
#DE624A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D256F

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

Preview Lab → · Contrast checker → · Palette generator →

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