#7D228F#7D228F

#7D228F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.180 H 320.4°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7D228F
RGBrgb(125, 34, 143)
HSLhsl(290, 62%, 35%)
HSVhsv(290, 76%, 56%)
CMYKcmyk(12.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(32.89, 53.23, -40.87)
CIE-LCHlch(32.89, 67.11, 322.48°)
OKLaboklab(44.5% 0.1384 -0.1145)
OKLCHoklch(44.5% 0.18 320.4)
XYZxyz(13.9868, 7.4879, 26.6899)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D228F #348F22
analogous
#47228F #7D228F #8F226A
triadic
#7D228F #8F7D22 #228F7D
tetradic
#7D228F #8F4722 #348F22 #226A8F
square
#7D228F #8F4722 #348F22 #226A8F
split-complementary
#7D228F #6A8F22 #228F47
monochromatic
#270A2C #52165E #7D228F #A82EC0 #C155D7

Accessibility & contrast

On white

8.41
#7D228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7D228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D228F
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D228F#FFFFFF#000000##FFFFFF
##7D228F1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d228f;
/* rgb */ color: rgb(125, 34, 143);
/* oklch */ color: oklch(44.5% 0.180 320.4);
Tailwind
colors: {
  custom: {
    50: '#a667b0',
    500: '#7d228f',
    950: '#000000',
  },
}
SCSS
$custom: #7d228f;
$custom-light: #a667b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d228f",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 290.092,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44498,
    "c": 0.17966,
    "h": 320.4
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#7D228F
secondary
#64BA52
accent
#E5435E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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