#7C237E#7C237E

#7C237E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.163 H 327.0°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7C237E
RGBrgb(124, 35, 126)
HSLhsl(299, 57%, 32%)
HSVhsv(299, 72%, 49%)
CMYKcmyk(1.6%, 72.2%, 0%, 50.6%)
CIE-LABlab(31.79, 49.47, -32.07)
CIE-LCHlch(31.79, 58.95, 327.04°)
OKLaboklab(43.34% 0.137 -0.0889)
OKLCHoklch(43.34% 0.163 327)
XYZxyz(12.6789, 6.9944, 20.4169)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C237E #257E23
analogous
#4F237E #7C237E #7E2353
triadic
#7C237E #7E7C23 #237E7C
tetradic
#7C237E #7E4F23 #257E23 #23537E
square
#7C237E #7E4F23 #257E23 #23537E
split-complementary
#7C237E #537E23 #237E4F
monochromatic
#1E081E #4D164E #7C237E #AB30AE #CB4ECE

Accessibility & contrast

On white

8.75
#7C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7C237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C237E
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C237E#FFFFFF#000000##FFFFFF
##7C237E1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114481
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#80314E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c237e;
/* rgb */ color: rgb(124, 35, 126);
/* oklch */ color: oklch(43.3% 0.163 327.0);
Tailwind
colors: {
  custom: {
    50: '#a567a4',
    500: '#7c237e',
    950: '#000000',
  },
}
SCSS
$custom: #7c237e;
$custom-light: #a567a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c237e",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 298.681,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4334,
    "c": 0.16331,
    "h": 327
  },
  "luminance": 0.06994
}

Semantic roles & 50–950 ramp

primary
#7C237E
secondary
#4FB04C
accent
#E0484B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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