#7C228A#7C228A

#7C228A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.175 H 321.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7C228A
RGBrgb(124, 34, 138)
HSLhsl(292, 60%, 34%)
HSVhsv(292, 75%, 54%)
CMYKcmyk(10.1%, 75.4%, 0%, 45.9%)
CIE-LABlab(32.40, 52.06, -38.58)
CIE-LCHlch(32.40, 64.80, 323.46°)
OKLaboklab(44.01% 0.1376 -0.1079)
OKLCHoklch(44.01% 0.175 321.9)
XYZxyz(13.4712, 7.2649, 24.7325)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C228A #308A22
analogous
#48228A #7C228A #8A2264
triadic
#7C228A #8A7C22 #228A7C
tetradic
#7C228A #8A4822 #308A22 #22648A
square
#7C228A #8A4822 #308A22 #22648A
split-complementary
#7C228A #648A22 #228A48
monochromatic
#240A28 #501659 #7C228A #A82EBB #C352D4

Accessibility & contrast

On white

8.56
#7C228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7C228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C228A
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C228A#FFFFFF#000000##FFFFFF
##7C228A1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#305088
Tritanopia (blue-blind)
#7D3654
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c228a;
/* rgb */ color: rgb(124, 34, 138);
/* oklch */ color: oklch(44.0% 0.175 321.9);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7c228a',
    950: '#000000',
  },
}
SCSS
$custom: #7c228a;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c228a",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 291.923,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44012,
    "c": 0.17485,
    "h": 321.9
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#7C228A
secondary
#5EB850
accent
#E4445A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C228A

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

Preview Lab → · Contrast checker → · Palette generator →

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