#7A257D#7A257D

#7A257D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.159 H 326.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7A257D
RGBrgb(122, 37, 125)
HSLhsl(298, 54%, 32%)
HSVhsv(298, 70%, 49%)
CMYKcmyk(2.4%, 70.4%, 0%, 51%)
CIE-LABlab(31.68, 48.02, -31.65)
CIE-LCHlch(31.68, 57.51, 326.61°)
OKLaboklab(43.17% 0.1324 -0.0878)
OKLCHoklch(43.17% 0.159 326.5)
XYZxyz(12.3891, 6.9422, 20.0855)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A257D #287D25
analogous
#4E257D #7A257D #7D2554
triadic
#7A257D #7D7A25 #257D7A
tetradic
#7A257D #7D4E25 #287D25 #25547D
square
#7A257D #7D4E25 #287D25 #25547D
split-complementary
#7A257D #547D25 #257D4E
monochromatic
#1E091F #4C174E #7A257D #A833AC #C751CB

Accessibility & contrast

On white

8.79
#7A257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7A257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A257D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A257D#FFFFFF#000000##FFFFFF
##7A257D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144480
Deuteranopia (green-blind)
#394E7B
Tritanopia (blue-blind)
#7D324E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a257d;
/* rgb */ color: rgb(122, 37, 125);
/* oklch */ color: oklch(43.2% 0.159 326.5);
Tailwind
colors: {
  custom: {
    50: '#a368a3',
    500: '#7a257d',
    950: '#000000',
  },
}
SCSS
$custom: #7a257d;
$custom-light: #a368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a257d",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 297.955,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43169,
    "c": 0.15888,
    "h": 326.5
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#7A257D
secondary
#52AF4F
accent
#DE4A4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #7A257D

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

Preview Lab → · Contrast checker → · Palette generator →

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