#7D228A#7D228A

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

Color values

HEX#7D228A
RGBrgb(125, 34, 138)
HSLhsl(293, 60%, 34%)
HSVhsv(293, 75%, 54%)
CMYKcmyk(9.4%, 75.4%, 0%, 45.9%)
CIE-LABlab(32.57, 52.28, -38.30)
CIE-LCHlch(32.57, 64.81, 323.77°)
OKLaboklab(44.16% 0.1388 -0.107)
OKLCHoklch(44.16% 0.175 322.4)
XYZxyz(13.6164, 7.3398, 24.7393)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D228A #2F8A22
analogous
#49228A #7D228A #8A2263
triadic
#7D228A #8A7D22 #228A7D
tetradic
#7D228A #8A4922 #2F8A22 #22638A
square
#7D228A #8A4922 #2F8A22 #22638A
split-complementary
#7D228A #638A22 #228A49
monochromatic
#240A28 #511659 #7D228A #A92EBB #C452D4

Accessibility & contrast

On white

8.51
#7D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7D228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D228A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D228A#FFFFFF#000000##FFFFFF
##7D228A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#7F3654
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d228a;
/* rgb */ color: rgb(125, 34, 138);
/* oklch */ color: oklch(44.2% 0.175 322.4);
Tailwind
colors: {
  custom: {
    50: '#a667ad',
    500: '#7d228a',
    950: '#000000',
  },
}
SCSS
$custom: #7d228a;
$custom-light: #a667ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d228a",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 292.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44163,
    "c": 0.1753,
    "h": 322.4
  },
  "luminance": 0.07339
}

Semantic roles & 50–950 ramp

primary
#7D228A
secondary
#5DB850
accent
#E44458
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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