#7C237A#7C237A

#7C237A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.160 H 328.9°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7C237A
RGBrgb(124, 35, 122)
HSLhsl(301, 56%, 31%)
HSVhsv(301, 72%, 49%)
CMYKcmyk(0%, 71.8%, 1.6%, 51.4%)
CIE-LABlab(31.56, 48.75, -29.92)
CIE-LCHlch(31.56, 57.21, 328.46°)
OKLaboklab(43.1% 0.1369 -0.0827)
OKLCHoklch(43.1% 0.16 328.9)
XYZxyz(12.4259, 6.8932, 19.0846)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C237A #237C25
analogous
#51237C #7C237A #7C234D
triadic
#7C237A #7A7C23 #237A7C
tetradic
#7C237A #7C5123 #237C25 #234D7C
square
#7C237A #7C5123 #237C25 #234D7C
split-complementary
#7C237A #4D7C23 #237C51
monochromatic
#1D081C #4C164B #7C237A #AC30A9 #CD4DCA

Accessibility & contrast

On white

8.83
#7C237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7C237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C237A
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C237A#FFFFFF#000000##FFFFFF
##7C237A1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437C
Deuteranopia (green-blind)
#3B4E78
Tritanopia (blue-blind)
#802F4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c237a;
/* rgb */ color: rgb(124, 35, 122);
/* oklch */ color: oklch(43.1% 0.160 328.9);
Tailwind
colors: {
  custom: {
    50: '#a567a1',
    500: '#7c237a',
    950: '#000000',
  },
}
SCSS
$custom: #7c237a;
$custom-light: #a567a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c237a",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 301.348,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43099,
    "c": 0.15994,
    "h": 328.9
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#7C237A
secondary
#4CAF4E
accent
#DF4C49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7C237A

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

Preview Lab → · Contrast checker → · Palette generator →

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