#7A237E#7A237E

#7A237E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.162 H 326.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7A237E
RGBrgb(122, 35, 126)
HSLhsl(297, 57%, 32%)
HSVhsv(297, 72%, 49%)
CMYKcmyk(3.2%, 72.2%, 0%, 50.6%)
CIE-LABlab(31.46, 48.99, -32.63)
CIE-LCHlch(31.46, 58.86, 326.34°)
OKLaboklab(43.03% 0.1346 -0.0906)
OKLCHoklch(43.03% 0.162 326.1)
XYZxyz(12.3927, 6.8468, 20.4034)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A237E #277E23
analogous
#4D237E #7A237E #7E2355
triadic
#7A237E #7E7A23 #237E7A
tetradic
#7A237E #7E4D23 #277E23 #23557E
square
#7A237E #7E4D23 #277E23 #23557E
split-complementary
#7A237E #557E23 #237E4D
monochromatic
#1D081E #4C164E #7A237E #A830AE #C84ECE

Accessibility & contrast

On white

8.86
#7A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A237E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A237E#FFFFFF#000000##FFFFFF
##7A237E1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4381
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#7D314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a237e;
/* rgb */ color: rgb(122, 35, 126);
/* oklch */ color: oklch(43.0% 0.162 326.1);
Tailwind
colors: {
  custom: {
    50: '#a467a4',
    500: '#7a237e',
    950: '#000000',
  },
}
SCSS
$custom: #7a237e;
$custom-light: #a467a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a237e",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 297.363,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43031,
    "c": 0.16228,
    "h": 326.1
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#7A237E
secondary
#51B04C
accent
#E0484F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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