#7C236F#7C236F

#7C236F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.151 H 334.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7C236F
RGBrgb(124, 35, 111)
HSLhsl(309, 56%, 31%)
HSVhsv(309, 72%, 49%)
CMYKcmyk(0%, 71.8%, 10.5%, 51.4%)
CIE-LABlab(30.96, 46.88, -23.90)
CIE-LCHlch(30.96, 52.62, 332.99°)
OKLaboklab(42.47% 0.1362 -0.0653)
OKLCHoklch(42.47% 0.151 334.4)
XYZxyz(11.7826, 6.6358, 15.6961)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C236F #237C30
analogous
#5C237C #7C236F #7C2342
triadic
#7C236F #6F7C23 #236F7C
tetradic
#7C236F #7C5C23 #237C30 #23427C
square
#7C236F #7C5C23 #237C30 #23427C
split-complementary
#7C236F #427C23 #237C5C
monochromatic
#1D081A #4C1644 #7C236F #AC309A #CD4DBA

Accessibility & contrast

On white

9.02
#7C236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7C236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C236F
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C236F#FFFFFF#000000##FFFFFF
##7C236F1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224171
Deuteranopia (green-blind)
#414E6D
Tritanopia (blue-blind)
#822A46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c236f;
/* rgb */ color: rgb(124, 35, 111);
/* oklch */ color: oklch(42.5% 0.151 334.4);
Tailwind
colors: {
  custom: {
    50: '#a56698',
    500: '#7c236f',
    950: '#000000',
  },
}
SCSS
$custom: #7c236f;
$custom-light: #a56698;
$custom-dark: #000000;
JSON
{
  "hex": "#7c236f",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 308.764,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42472,
    "c": 0.15101,
    "h": 334.4
  },
  "luminance": 0.06635
}

Semantic roles & 50–950 ramp

primary
#7C236F
secondary
#4CAF5B
accent
#DF5F49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C236F

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

Preview Lab → · Contrast checker → · Palette generator →

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