#7C237C#7C237C

#7C237C is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.162 H 327.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7C237C
RGBrgb(124, 35, 124)
HSLhsl(300, 56%, 31%)
HSVhsv(300, 72%, 49%)
CMYKcmyk(0%, 71.8%, 0%, 51.4%)
CIE-LABlab(31.68, 49.11, -31.00)
CIE-LCHlch(31.68, 58.07, 327.74°)
OKLaboklab(43.22% 0.137 -0.0858)
OKLCHoklch(43.22% 0.162 327.9)
XYZxyz(12.5511, 6.9433, 19.7440)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C237C #237C23
analogous
#4F237C #7C237C #7C234F
triadic
#7C237C #7C7C23 #237C7C
tetradic
#7C237C #7C4F23 #237C23 #234F7C
square
#7C237C #7C4F23 #237C23 #234F7C
split-complementary
#7C237C #4F7C23 #237C4F
monochromatic
#1D081D #4C164C #7C237C #AC30AC #CD4DCD

Accessibility & contrast

On white

8.79
#7C237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7C237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C237C
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C237C#FFFFFF#000000##FFFFFF
##7C237C1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#3A4F7A
Tritanopia (blue-blind)
#80304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c237c;
/* rgb */ color: rgb(124, 35, 124);
/* oklch */ color: oklch(43.2% 0.162 327.9);
Tailwind
colors: {
  custom: {
    50: '#a567a2',
    500: '#7c237c',
    950: '#000000',
  },
}
SCSS
$custom: #7c237c;
$custom-light: #a567a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c237c",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43218,
    "c": 0.16162,
    "h": 327.9
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#7C237C
secondary
#4CAF4C
accent
#DF4949
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C237C

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

Preview Lab → · Contrast checker → · Palette generator →

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