#7C228E#7C228E

#7C228E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.178 H 320.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7C228E
RGBrgb(124, 34, 142)
HSLhsl(290, 61%, 35%)
HSVhsv(290, 76%, 56%)
CMYKcmyk(12.7%, 76.1%, 0%, 44.3%)
CIE-LABlab(32.66, 52.82, -40.63)
CIE-LCHlch(32.66, 66.64, 322.43°)
OKLaboklab(44.28% 0.1373 -0.1139)
OKLCHoklch(44.28% 0.178 320.3)
XYZxyz(13.7661, 7.3829, 26.2859)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C228E #348E22
analogous
#46228E #7C228E #8E226A
triadic
#7C228E #8E7C22 #228E7C
tetradic
#7C228E #8E4622 #348E22 #226A8E
square
#7C228E #8E4622 #348E22 #226A8E
split-complementary
#7C228E #6A8E22 #228E46
monochromatic
#260A2B #51165D #7C228E #A72EBF #C054D6

Accessibility & contrast

On white

8.48
#7C228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7C228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C228E
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C228E#FFFFFF#000000##FFFFFF
##7C228E1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#7D3857
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c228e;
/* rgb */ color: rgb(124, 34, 142);
/* oklch */ color: oklch(44.3% 0.178 320.3);
Tailwind
colors: {
  custom: {
    50: '#a567b0',
    500: '#7c228e',
    950: '#000000',
  },
}
SCSS
$custom: #7c228e;
$custom-light: #a567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c228e",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 290,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44281,
    "c": 0.17836,
    "h": 320.3
  },
  "luminance": 0.07382
}

Semantic roles & 50–950 ramp

primary
#7C228E
secondary
#63BA52
accent
#E4435E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C228E

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

Preview Lab → · Contrast checker → · Palette generator →

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