#7E237E#7E237E

#7E237E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.164 H 327.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7E237E
RGBrgb(126, 35, 126)
HSLhsl(300, 57%, 32%)
HSVhsv(300, 72%, 49%)
CMYKcmyk(0%, 72.2%, 0%, 50.6%)
CIE-LABlab(32.13, 49.95, -31.51)
CIE-LCHlch(32.13, 59.05, 327.75°)
OKLaboklab(43.65% 0.1393 -0.0872)
OKLCHoklch(43.65% 0.164 327.9)
XYZxyz(12.9709, 7.1450, 20.4306)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E237E #237E23
analogous
#51237E #7E237E #7E2351
triadic
#7E237E #7E7E23 #237E7E
tetradic
#7E237E #7E5123 #237E23 #23517E
square
#7E237E #7E5123 #237E23 #23517E
split-complementary
#7E237E #517E23 #237E51
monochromatic
#1E081E #4E164E #7E237E #AE30AE #CE4ECE

Accessibility & contrast

On white

8.65
#7E237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E237E
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E237E#FFFFFF#000000##FFFFFF
##7E237E1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134481
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#82304E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e237e;
/* rgb */ color: rgb(126, 35, 126);
/* oklch */ color: oklch(43.7% 0.164 327.9);
Tailwind
colors: {
  custom: {
    50: '#a667a4',
    500: '#7e237e',
    950: '#000000',
  },
}
SCSS
$custom: #7e237e;
$custom-light: #a667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e237e",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43651,
    "c": 0.16436,
    "h": 327.9
  },
  "luminance": 0.07144
}

Semantic roles & 50–950 ramp

primary
#7E237E
secondary
#4CB04C
accent
#E04848
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E237E

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

Preview Lab → · Contrast checker → · Palette generator →

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