#7C237B#7C237B

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

Color values

HEX#7C237B
RGBrgb(124, 35, 123)
HSLhsl(301, 56%, 31%)
HSVhsv(301, 72%, 49%)
CMYKcmyk(0%, 71.8%, 0.8%, 51.4%)
CIE-LABlab(31.62, 48.93, -30.46)
CIE-LCHlch(31.62, 57.64, 328.10°)
OKLaboklab(43.16% 0.1369 -0.0842)
OKLCHoklch(43.16% 0.161 328.4)
XYZxyz(12.4882, 6.9181, 19.4126)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C237B #237C24
analogous
#50237C #7C237B #7C234E
triadic
#7C237B #7B7C23 #237B7C
tetradic
#7C237B #7C5023 #237C24 #234E7C
square
#7C237B #7C5023 #237C24 #234E7C
split-complementary
#7C237B #4E7C23 #237C50
monochromatic
#1D081C #4C164C #7C237B #AC30AA #CD4DCB

Accessibility & contrast

On white

8.81
#7C237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C237B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C237B#FFFFFF#000000##FFFFFF
##7C237B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437D
Deuteranopia (green-blind)
#3B4E79
Tritanopia (blue-blind)
#80304C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c237b;
/* rgb */ color: rgb(124, 35, 123);
/* oklch */ color: oklch(43.2% 0.161 328.4);
Tailwind
colors: {
  custom: {
    50: '#a567a1',
    500: '#7c237b',
    950: '#000000',
  },
}
SCSS
$custom: #7c237b;
$custom-light: #a567a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c237b",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 300.674,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.16078,
    "h": 328.4
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#7C237B
secondary
#4CAF4D
accent
#DF4A49
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C237B

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

Preview Lab → · Contrast checker → · Palette generator →

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