#7C229C#7C229C

#7C229C is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.191 H 315.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7C229C
RGBrgb(124, 34, 156)
HSLhsl(284, 64%, 37%)
HSVhsv(284, 78%, 61%)
CMYKcmyk(20.5%, 78.2%, 0%, 38.8%)
CIE-LABlab(33.63, 55.60, -47.65)
CIE-LCHlch(33.63, 73.22, 319.40°)
OKLaboklab(45.27% 0.1354 -0.1345)
OKLCHoklch(45.27% 0.191 315.2)
XYZxyz(14.8840, 7.8300, 32.1734)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C229C #429C22
analogous
#3F229C #7C229C #9C227F
triadic
#7C229C #9C7C22 #229C7C
tetradic
#7C229C #9C3F22 #429C22 #227F9C
square
#7C229C #9C3F22 #429C22 #227F9C
split-complementary
#7C229C #7F9C22 #229C3F
monochromatic
#2C0C38 #54176A #7C229C #A42DCE #BA5DDC

Accessibility & contrast

On white

8.18
#7C229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7C229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C229C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C229C#FFFFFF#000000##FFFFFF
##7C229C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#1D5199
Tritanopia (blue-blind)
#793E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c229c;
/* rgb */ color: rgb(124, 34, 156);
/* oklch */ color: oklch(45.3% 0.191 315.2);
Tailwind
colors: {
  custom: {
    50: '#a668ba',
    500: '#7c229c',
    950: '#000000',
  },
}
SCSS
$custom: #7c229c;
$custom-light: #a668ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7c229c",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 284.262,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45269,
    "c": 0.19085,
    "h": 315.2
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#7C229C
secondary
#75C05A
accent
#E7416C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C229C

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

Preview Lab → · Contrast checker → · Palette generator →

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