#7C227F#7C227F

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

Color values

HEX#7C227F
RGBrgb(124, 34, 127)
HSLhsl(298, 58%, 32%)
HSVhsv(298, 73%, 50%)
CMYKcmyk(2.4%, 73.2%, 0%, 50.2%)
CIE-LABlab(31.72, 50.02, -32.81)
CIE-LCHlch(31.72, 59.82, 326.74°)
OKLaboklab(43.31% 0.138 -0.0911)
OKLCHoklch(43.31% 0.165 326.6)
XYZxyz(12.7147, 6.9623, 20.7487)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C227F #257F22
analogous
#4E227F #7C227F #7F2254
triadic
#7C227F #7F7C22 #227F7C
tetradic
#7C227F #7F4E22 #257F22 #22547F
square
#7C227F #7F4E22 #257F22 #22547F
split-complementary
#7C227F #547F22 #227F4E
monochromatic
#1E081E #4D154F #7C227F #AB2FAF #CB4CCF

Accessibility & contrast

On white

8.78
#7C227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C227F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C227F#FFFFFF#000000##FFFFFF
##7C227F1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4382
Deuteranopia (green-blind)
#384F7D
Tritanopia (blue-blind)
#7F314E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c227f;
/* rgb */ color: rgb(124, 34, 127);
/* oklch */ color: oklch(43.3% 0.165 326.6);
Tailwind
colors: {
  custom: {
    50: '#a567a4',
    500: '#7c227f',
    950: '#000000',
  },
}
SCSS
$custom: #7c227f;
$custom-light: #a567a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c227f",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 298.065,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43307,
    "c": 0.16537,
    "h": 326.6
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#7C227F
secondary
#4FB24B
accent
#E1474C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C227F

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

Preview Lab → · Contrast checker → · Palette generator →

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