#7D228B#7D228B

#7D228B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.176 H 322.0°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7D228B
RGBrgb(125, 34, 139)
HSLhsl(292, 61%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(32.63, 52.47, -38.82)
CIE-LCHlch(32.63, 65.27, 323.50°)
OKLaboklab(44.23% 0.1388 -0.1085)
OKLCHoklch(44.23% 0.176 322)
XYZxyz(13.6892, 7.3689, 25.1224)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D228B #308B22
analogous
#49228B #7D228B #8B2265
triadic
#7D228B #8B7D22 #228B7D
tetradic
#7D228B #8B4922 #308B22 #22658B
square
#7D228B #8B4922 #308B22 #22658B
split-complementary
#7D228B #658B22 #228B49
monochromatic
#250A29 #51165A #7D228B #A92EBC #C353D5

Accessibility & contrast

On white

8.49
#7D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D228B
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D228B#FFFFFF#000000##FFFFFF
##7D228B1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#7E3655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d228b;
/* rgb */ color: rgb(125, 34, 139);
/* oklch */ color: oklch(44.2% 0.176 322.0);
Tailwind
colors: {
  custom: {
    50: '#a667ad',
    500: '#7d228b',
    950: '#000000',
  },
}
SCSS
$custom: #7d228b;
$custom-light: #a667ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d228b",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 292,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44229,
    "c": 0.17617,
    "h": 322
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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