#7E237C#7E237C

#7E237C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.163 H 328.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7E237C
RGBrgb(126, 35, 124)
HSLhsl(301, 57%, 32%)
HSVhsv(301, 72%, 49%)
CMYKcmyk(0%, 72.2%, 1.6%, 50.6%)
CIE-LABlab(32.02, 49.59, -30.44)
CIE-LCHlch(32.02, 58.19, 328.46°)
OKLaboklab(43.53% 0.1393 -0.0841)
OKLCHoklch(43.53% 0.163 328.9)
XYZxyz(12.8432, 7.0939, 19.7577)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E237C #237E25
analogous
#53237E #7E237C #7E234F
triadic
#7E237C #7C7E23 #237C7E
tetradic
#7E237C #7E5323 #237E25 #234F7E
square
#7E237C #7E5323 #237E25 #234F7E
split-complementary
#7E237C #4F7E23 #237E53
monochromatic
#1E081E #4E164D #7E237C #AE30AB #CE4ECB

Accessibility & contrast

On white

8.68
#7E237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E237C
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E237C#FFFFFF#000000##FFFFFF
##7E237C1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447E
Deuteranopia (green-blind)
#3C507A
Tritanopia (blue-blind)
#82304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e237c;
/* rgb */ color: rgb(126, 35, 124);
/* oklch */ color: oklch(43.5% 0.163 328.9);
Tailwind
colors: {
  custom: {
    50: '#a667a2',
    500: '#7e237c',
    950: '#000000',
  },
}
SCSS
$custom: #7e237c;
$custom-light: #a667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e237c",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 301.319,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43531,
    "c": 0.16269,
    "h": 328.9
  },
  "luminance": 0.07093
}

Semantic roles & 50–950 ramp

primary
#7E237C
secondary
#4CB04F
accent
#E04B48
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E237C

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

Preview Lab → · Contrast checker → · Palette generator →

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