#7C236E#7C236E

#7C236E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.150 H 334.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7C236E
RGBrgb(124, 35, 110)
HSLhsl(309, 56%, 31%)
HSVhsv(309, 72%, 49%)
CMYKcmyk(0%, 71.8%, 11.3%, 51.4%)
CIE-LABlab(30.91, 46.72, -23.34)
CIE-LCHlch(30.91, 52.22, 333.45°)
OKLaboklab(42.42% 0.1361 -0.0637)
OKLCHoklch(42.42% 0.15 334.9)
XYZxyz(11.7278, 6.6139, 15.4078)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C236E #237C31
analogous
#5D237C #7C236E #7C2341
triadic
#7C236E #6E7C23 #236E7C
tetradic
#7C236E #7C5D23 #237C31 #23417C
square
#7C236E #7C5D23 #237C31 #23417C
split-complementary
#7C236E #417C23 #237C5D
monochromatic
#1D0819 #4C1644 #7C236E #AC3098 #CD4DB9

Accessibility & contrast

On white

9.04
#7C236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7C236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C236E
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C236E#FFFFFF#000000##FFFFFF
##7C236E1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234070
Deuteranopia (green-blind)
#414D6C
Tritanopia (blue-blind)
#822A45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c236e;
/* rgb */ color: rgb(124, 35, 110);
/* oklch */ color: oklch(42.4% 0.150 334.9);
Tailwind
colors: {
  custom: {
    50: '#a56698',
    500: '#7c236e',
    950: '#000000',
  },
}
SCSS
$custom: #7c236e;
$custom-light: #a56698;
$custom-dark: #000000;
JSON
{
  "hex": "#7c236e",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 309.438,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.15023,
    "h": 334.9
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#7C236E
secondary
#4CAF5C
accent
#DF6049
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C236E

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

Preview Lab → · Contrast checker → · Palette generator →

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