#7C227E#7C227E

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

Color values

HEX#7C227E
RGBrgb(124, 34, 126)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(1.6%, 73%, 0%, 50.6%)
CIE-LABlab(31.66, 49.84, -32.28)
CIE-LCHlch(31.66, 59.38, 327.07°)
OKLaboklab(43.25% 0.138 -0.0895)
OKLCHoklch(43.25% 0.165 327)
XYZxyz(12.6499, 6.9364, 20.4072)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C227E #247E22
analogous
#4E227E #7C227E #7E2252
triadic
#7C227E #7E7C22 #227E7C
tetradic
#7C227E #7E4E22 #247E22 #22527E
square
#7C227E #7E4E22 #247E22 #22527E
split-complementary
#7C227E #527E22 #227E4E
monochromatic
#1D081E #4D154E #7C227E #AB2FAE #CC4CCF

Accessibility & contrast

On white

8.80
#7C227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C227E
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C227E#FFFFFF#000000##FFFFFF
##7C227E1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4381
Deuteranopia (green-blind)
#394E7C
Tritanopia (blue-blind)
#80304E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c227e;
/* rgb */ color: rgb(124, 34, 126);
/* oklch */ color: oklch(43.2% 0.165 327.0);
Tailwind
colors: {
  custom: {
    50: '#a567a4',
    500: '#7c227e',
    950: '#000000',
  },
}
SCSS
$custom: #7c227e;
$custom-light: #a567a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c227e",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 298.696,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43245,
    "c": 0.16453,
    "h": 327
  },
  "luminance": 0.06935
}

Semantic roles & 50–950 ramp

primary
#7C227E
secondary
#4DB14B
accent
#E1474A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C227E

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

Preview Lab → · Contrast checker → · Palette generator →

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