#7C227D#7C227D

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

Color values

HEX#7C227D
RGBrgb(124, 34, 125)
HSLhsl(299, 57%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(0.8%, 72.8%, 0%, 51%)
CIE-LABlab(31.60, 49.66, -31.75)
CIE-LCHlch(31.60, 58.94, 327.41°)
OKLaboklab(43.18% 0.138 -0.088)
OKLCHoklch(43.18% 0.164 327.5)
XYZxyz(12.5857, 6.9107, 20.0691)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C227D #237D22
analogous
#4E227D #7C227D #7D2250
triadic
#7C227D #7D7C22 #227D7C
tetradic
#7C227D #7D4E22 #237D22 #22507D
square
#7C227D #7D4E22 #237D22 #22507D
split-complementary
#7C227D #507D22 #227D4E
monochromatic
#1D081D #4C154D #7C227D #AC2FAD #CD4BCE

Accessibility & contrast

On white

8.82
#7C227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C227D
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C227D#FFFFFF#000000##FFFFFF
##7C227D1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#394E7B
Tritanopia (blue-blind)
#80304D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c227d;
/* rgb */ color: rgb(124, 34, 125);
/* oklch */ color: oklch(43.2% 0.164 327.5);
Tailwind
colors: {
  custom: {
    50: '#a567a3',
    500: '#7c227d',
    950: '#000000',
  },
}
SCSS
$custom: #7c227d;
$custom-light: #a567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c227d",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 299.341,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.16369,
    "h": 327.5
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#7C227D
secondary
#4CB04B
accent
#E04749
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C227D

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

Preview Lab → · Contrast checker → · Palette generator →

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