#7E237A#7E237A

#7E237A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.161 H 329.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7E237A
RGBrgb(126, 35, 122)
HSLhsl(303, 57%, 32%)
HSVhsv(303, 72%, 49%)
CMYKcmyk(0%, 72.2%, 3.2%, 50.6%)
CIE-LABlab(31.91, 49.25, -29.36)
CIE-LCHlch(31.91, 57.33, 329.20°)
OKLaboklab(43.41% 0.1392 -0.081)
OKLCHoklch(43.41% 0.161 329.8)
XYZxyz(12.7180, 7.0438, 19.0983)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E237A #237E27
analogous
#55237E #7E237A #7E234D
triadic
#7E237A #7A7E23 #237A7E
tetradic
#7E237A #7E5523 #237E27 #234D7E
square
#7E237A #7E5523 #237E27 #234D7E
split-complementary
#7E237A #4D7E23 #237E55
monochromatic
#1E081D #4E164C #7E237A #AE30A8 #CE4EC8

Accessibility & contrast

On white

8.72
#7E237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E237A
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E237A#FFFFFF#000000##FFFFFF
##7E237A1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437C
Deuteranopia (green-blind)
#3D4F78
Tritanopia (blue-blind)
#832F4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e237a;
/* rgb */ color: rgb(126, 35, 122);
/* oklch */ color: oklch(43.4% 0.161 329.8);
Tailwind
colors: {
  custom: {
    50: '#a667a1',
    500: '#7e237a',
    950: '#000000',
  },
}
SCSS
$custom: #7e237a;
$custom-light: #a667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e237a",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 302.637,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.16104,
    "h": 329.8
  },
  "luminance": 0.07043
}

Semantic roles & 50–950 ramp

primary
#7E237A
secondary
#4CB051
accent
#E04F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E237A

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

Preview Lab → · Contrast checker → · Palette generator →

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