#7C228B#7C228B

#7C228B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.176 H 321.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7C228B
RGBrgb(124, 34, 139)
HSLhsl(291, 61%, 34%)
HSVhsv(291, 76%, 55%)
CMYKcmyk(10.8%, 75.5%, 0%, 45.5%)
CIE-LABlab(32.47, 52.25, -39.09)
CIE-LCHlch(32.47, 65.26, 323.20°)
OKLaboklab(44.08% 0.1375 -0.1094)
OKLCHoklch(44.08% 0.176 321.5)
XYZxyz(13.5439, 7.2940, 25.1156)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C228B #318B22
analogous
#48228B #7C228B #8B2266
triadic
#7C228B #8B7C22 #228B7C
tetradic
#7C228B #8B4822 #318B22 #22668B
square
#7C228B #8B4822 #318B22 #22668B
split-complementary
#7C228B #668B22 #228B48
monochromatic
#240A29 #50165A #7C228B #A82EBC #C253D5

Accessibility & contrast

On white

8.54
#7C228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7C228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C228B
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C228B#FFFFFF#000000##FFFFFF
##7C228B1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#2F5089
Tritanopia (blue-blind)
#7D3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c228b;
/* rgb */ color: rgb(124, 34, 139);
/* oklch */ color: oklch(44.1% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7c228b',
    950: '#000000',
  },
}
SCSS
$custom: #7c228b;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c228b",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 291.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44079,
    "c": 0.17573,
    "h": 321.5
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#7C228B
secondary
#5FB850
accent
#E4445B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C228B

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

Preview Lab → · Contrast checker → · Palette generator →

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