#7C228C#7C228C

#7C228C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.177 H 321.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7C228C
RGBrgb(124, 34, 140)
HSLhsl(291, 61%, 34%)
HSVhsv(291, 76%, 55%)
CMYKcmyk(11.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(32.53, 52.44, -39.61)
CIE-LCHlch(32.53, 65.72, 322.94°)
OKLaboklab(44.15% 0.1375 -0.1109)
OKLCHoklch(44.15% 0.177 321.1)
XYZxyz(13.6173, 7.3233, 25.5021)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C228C #328C22
analogous
#47228C #7C228C #8C2267
triadic
#7C228C #8C7C22 #228C7C
tetradic
#7C228C #8C4722 #328C22 #22678C
square
#7C228C #8C4722 #328C22 #22678C
split-complementary
#7C228C #678C22 #228C47
monochromatic
#250A2A #50165B #7C228C #A82EBD #C253D5

Accessibility & contrast

On white

8.52
#7C228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7C228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C228C
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C228C#FFFFFF#000000##FFFFFF
##7C228C1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2F508A
Tritanopia (blue-blind)
#7D3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c228c;
/* rgb */ color: rgb(124, 34, 140);
/* oklch */ color: oklch(44.1% 0.177 321.1);
Tailwind
colors: {
  custom: {
    50: '#a567ae',
    500: '#7c228c',
    950: '#000000',
  },
}
SCSS
$custom: #7c228c;
$custom-light: #a567ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7c228c",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 290.943,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44146,
    "c": 0.1766,
    "h": 321.1
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#7C228C
secondary
#61B951
accent
#E4445C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C228C

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

Preview Lab → · Contrast checker → · Palette generator →

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