#7A237F#7A237F

#7A237F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.163 H 325.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7A237F
RGBrgb(122, 35, 127)
HSLhsl(297, 57%, 32%)
HSVhsv(297, 72%, 50%)
CMYKcmyk(3.9%, 72.4%, 0%, 50.2%)
CIE-LABlab(31.52, 49.17, -33.16)
CIE-LCHlch(31.52, 59.31, 326.01°)
OKLaboklab(43.09% 0.1346 -0.0921)
OKLCHoklch(43.09% 0.163 325.6)
XYZxyz(12.4576, 6.8728, 20.7450)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A237F #287F23
analogous
#4C237F #7A237F #7F2356
triadic
#7A237F #7F7A23 #237F7A
tetradic
#7A237F #7F4C23 #287F23 #23567F
square
#7A237F #7F4C23 #287F23 #23567F
split-complementary
#7A237F #567F23 #237F4C
monochromatic
#1E091F #4C164F #7A237F #A830AF #C74ECE

Accessibility & contrast

On white

8.84
#7A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A237F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A237F#FFFFFF#000000##FFFFFF
##7A237F1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4382
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#7D324E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a237f;
/* rgb */ color: rgb(122, 35, 127);
/* oklch */ color: oklch(43.1% 0.163 325.6);
Tailwind
colors: {
  custom: {
    50: '#a467a4',
    500: '#7a237f',
    950: '#000000',
  },
}
SCSS
$custom: #7a237f;
$custom-light: #a467a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a237f",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 296.739,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43093,
    "c": 0.16314,
    "h": 325.6
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#7A237F
secondary
#52B14C
accent
#E04850
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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