#7D2298#7D2298

#7D2298 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.188 H 317.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7D2298
RGBrgb(125, 34, 152)
HSLhsl(286, 63%, 36%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(17.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.50, 54.99, -45.40)
CIE-LCHlch(33.50, 71.31, 320.45°)
OKLaboklab(45.12% 0.1373 -0.1278)
OKLCHoklch(45.12% 0.188 317)
XYZxyz(14.6961, 7.7717, 30.4256)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2298 #3D9822
analogous
#422298 #7D2298 #982278
triadic
#7D2298 #987D22 #22987D
tetradic
#7D2298 #984222 #3D9822 #227898
square
#7D2298 #984222 #3D9822 #227898
split-complementary
#7D2298 #789822 #229842
monochromatic
#2B0C34 #541766 #7D2298 #A62DCA #BD5ADA

Accessibility & contrast

On white

8.22
#7D2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2298
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2298#FFFFFF#000000##FFFFFF
##7D22981.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#245195
Tritanopia (blue-blind)
#7C3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2298;
/* rgb */ color: rgb(125, 34, 152);
/* oklch */ color: oklch(45.1% 0.188 317.0);
Tailwind
colors: {
  custom: {
    50: '#a768b7',
    500: '#7d2298',
    950: '#000000',
  },
}
SCSS
$custom: #7d2298;
$custom-light: #a768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2298",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 286.271,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.18763,
    "h": 317
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#7D2298
secondary
#6FBE57
accent
#E64167
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2298

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

Preview Lab → · Contrast checker → · Palette generator →

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