#7A257E#7A257E

#7A257E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.160 H 326.0°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7A257E
RGBrgb(122, 37, 126)
HSLhsl(297, 55%, 32%)
HSVhsv(297, 71%, 49%)
CMYKcmyk(3.2%, 70.6%, 0%, 50.6%)
CIE-LABlab(31.73, 48.20, -32.19)
CIE-LCHlch(31.73, 57.96, 326.27°)
OKLaboklab(43.23% 0.1324 -0.0893)
OKLCHoklch(43.23% 0.16 326)
XYZxyz(12.4533, 6.9679, 20.4236)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A257E #297E25
analogous
#4D257E #7A257E #7E2556
triadic
#7A257E #7E7A25 #257E7A
tetradic
#7A257E #7E4D25 #297E25 #25567E
square
#7A257E #7E4D25 #297E25 #25567E
split-complementary
#7A257E #567E25 #257E4D
monochromatic
#1E091F #4C174F #7A257E #A833AD #C751CC

Accessibility & contrast

On white

8.77
#7A257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A257E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A257E#FFFFFF#000000##FFFFFF
##7A257E1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134481
Deuteranopia (green-blind)
#384E7C
Tritanopia (blue-blind)
#7D334E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a257e;
/* rgb */ color: rgb(122, 37, 126);
/* oklch */ color: oklch(43.2% 0.160 326.0);
Tailwind
colors: {
  custom: {
    50: '#a368a4',
    500: '#7a257e',
    950: '#000000',
  },
}
SCSS
$custom: #7a257e;
$custom-light: #a368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a257e",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 297.303,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4323,
    "c": 0.15975,
    "h": 326
  },
  "luminance": 0.06967
}

Semantic roles & 50–950 ramp

primary
#7A257E
secondary
#53B04F
accent
#DE4A51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #7A257E

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

Preview Lab → · Contrast checker → · Palette generator →

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