#7C227C#7C227C

#7C227C is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.163 H 328.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7C227C
RGBrgb(124, 34, 124)
HSLhsl(300, 57%, 31%)
HSVhsv(300, 73%, 49%)
CMYKcmyk(0%, 72.6%, 0%, 51.4%)
CIE-LABlab(31.54, 49.49, -31.21)
CIE-LCHlch(31.54, 58.51, 327.76°)
OKLaboklab(43.12% 0.138 -0.0864)
OKLCHoklch(43.12% 0.163 328)
XYZxyz(12.5221, 6.8853, 19.7343)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C227C #227C22
analogous
#4F227C #7C227C #7C224F
triadic
#7C227C #7C7C22 #227C7C
tetradic
#7C227C #7C4F22 #227C22 #224F7C
square
#7C227C #7C4F22 #227C22 #224F7C
split-complementary
#7C227C #4F7C22 #227C4F
monochromatic
#1C081C #4C154C #7C227C #AC2FAC #CE4BCE

Accessibility & contrast

On white

8.84
#7C227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C227C
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C227C#FFFFFF#000000##FFFFFF
##7C227C1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12437F
Deuteranopia (green-blind)
#3A4E7A
Tritanopia (blue-blind)
#802F4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c227c;
/* rgb */ color: rgb(124, 34, 124);
/* oklch */ color: oklch(43.1% 0.163 328.0);
Tailwind
colors: {
  custom: {
    50: '#a566a2',
    500: '#7c227c',
    950: '#000000',
  },
}
SCSS
$custom: #7c227c;
$custom-light: #a566a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c227c",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43123,
    "c": 0.16285,
    "h": 328
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#7C227C
secondary
#4BAF4B
accent
#E04848
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C227C

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

Preview Lab → · Contrast checker → · Palette generator →

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