#7C229A#7C229A

#7C229A is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.189 H 315.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7C229A
RGBrgb(124, 34, 154)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.5%, 77.9%, 0%, 39.6%)
CIE-LABlab(33.48, 55.19, -46.66)
CIE-LCHlch(33.48, 72.27, 319.79°)
OKLaboklab(45.12% 0.1358 -0.1316)
OKLCHoklch(45.12% 0.189 315.9)
XYZxyz(14.7160, 7.7628, 31.2888)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C229A #409A22
analogous
#40229A #7C229A #9A227C
triadic
#7C229A #9A7C22 #229A7C
tetradic
#7C229A #9A4022 #409A22 #227C9A
square
#7C229A #9A4022 #409A22 #227C9A
split-complementary
#7C229A #7C9A22 #229A40
monochromatic
#2B0C36 #541768 #7C229A #A42DCC #BB5BDB

Accessibility & contrast

On white

8.23
#7C229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7C229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C229A
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C229A#FFFFFF#000000##FFFFFF
##7C229A1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#205197
Tritanopia (blue-blind)
#7A3D5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c229a;
/* rgb */ color: rgb(124, 34, 154);
/* oklch */ color: oklch(45.1% 0.189 315.9);
Tailwind
colors: {
  custom: {
    50: '#a668b8',
    500: '#7c229a',
    950: '#000000',
  },
}
SCSS
$custom: #7c229a;
$custom-light: #a668b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c229a",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 285,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.18905,
    "h": 315.9
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#7C229A
secondary
#72BF58
accent
#E7416A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C229A

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

Preview Lab → · Contrast checker → · Palette generator →

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