#7C228F#7C228F

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

Color values

HEX#7C228F
RGBrgb(124, 34, 143)
HSLhsl(290, 62%, 35%)
HSVhsv(290, 76%, 56%)
CMYKcmyk(13.3%, 76.2%, 0%, 43.9%)
CIE-LABlab(32.73, 53.02, -41.14)
CIE-LCHlch(32.73, 67.11, 322.19°)
OKLaboklab(44.35% 0.1372 -0.1154)
OKLCHoklch(44.35% 0.179 319.9)
XYZxyz(13.8415, 7.4130, 26.6830)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C228F #358F22
analogous
#45228F #7C228F #8F226C
triadic
#7C228F #8F7C22 #228F7C
tetradic
#7C228F #8F4522 #358F22 #226C8F
square
#7C228F #8F4522 #358F22 #226C8F
split-complementary
#7C228F #6C8F22 #228F45
monochromatic
#260A2C #51165E #7C228F #A72EC0 #C055D7

Accessibility & contrast

On white

8.46
#7C228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C228F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C228F#FFFFFF#000000##FFFFFF
##7C228F1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#2C508D
Tritanopia (blue-blind)
#7C3857
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c228f;
/* rgb */ color: rgb(124, 34, 143);
/* oklch */ color: oklch(44.3% 0.179 319.9);
Tailwind
colors: {
  custom: {
    50: '#a567b0',
    500: '#7c228f',
    950: '#000000',
  },
}
SCSS
$custom: #7c228f;
$custom-light: #a567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c228f",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 289.541,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44349,
    "c": 0.17924,
    "h": 319.9
  },
  "luminance": 0.07412
}

Semantic roles & 50–950 ramp

primary
#7C228F
secondary
#65BA52
accent
#E5435F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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