#7C237D#7C237D

#7C237D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.162 H 327.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7C237D
RGBrgb(124, 35, 125)
HSLhsl(299, 56%, 31%)
HSVhsv(299, 72%, 49%)
CMYKcmyk(0.8%, 72%, 0%, 51%)
CIE-LABlab(31.74, 49.29, -31.54)
CIE-LCHlch(31.74, 58.51, 327.39°)
OKLaboklab(43.28% 0.137 -0.0874)
OKLCHoklch(43.28% 0.162 327.5)
XYZxyz(12.6147, 6.9687, 20.0787)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C237D #247D23
analogous
#4F237D #7C237D #7D2351
triadic
#7C237D #7D7C23 #237D7C
tetradic
#7C237D #7D4F23 #247D23 #23517D
square
#7C237D #7D4F23 #247D23 #23517D
split-complementary
#7C237D #517D23 #237D4F
monochromatic
#1D081D #4D164D #7C237D #AB30AD #CC4DCD

Accessibility & contrast

On white

8.77
#7C237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C237D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C237D#FFFFFF#000000##FFFFFF
##7C237D1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134380
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#80304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c237d;
/* rgb */ color: rgb(124, 35, 125);
/* oklch */ color: oklch(43.3% 0.162 327.5);
Tailwind
colors: {
  custom: {
    50: '#a567a3',
    500: '#7c237d',
    950: '#000000',
  },
}
SCSS
$custom: #7c237d;
$custom-light: #a567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c237d",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 299.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43279,
    "c": 0.16246,
    "h": 327.5
  },
  "luminance": 0.06968
}

Semantic roles & 50–950 ramp

primary
#7C237D
secondary
#4DAF4C
accent
#E0484A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C237D

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

Preview Lab → · Contrast checker → · Palette generator →

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