#7D2297#7D2297

#7D2297 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.187 H 317.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7D2297
RGBrgb(125, 34, 151)
HSLhsl(287, 63%, 36%)
HSVhsv(287, 77%, 59%)
CMYKcmyk(17.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(33.43, 54.79, -44.91)
CIE-LCHlch(33.43, 70.84, 320.66°)
OKLaboklab(45.05% 0.1375 -0.1264)
OKLCHoklch(45.05% 0.187 317.4)
XYZxyz(14.6146, 7.7390, 29.9961)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2297 #3C9722
analogous
#432297 #7D2297 #972277
triadic
#7D2297 #977D22 #22977D
tetradic
#7D2297 #974322 #3C9722 #227797
square
#7D2297 #974322 #3C9722 #227797
split-complementary
#7D2297 #779722 #229743
monochromatic
#2A0C33 #541765 #7D2297 #A62DC9 #BD5ADA

Accessibility & contrast

On white

8.24
#7D2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2297
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2297#FFFFFF#000000##FFFFFF
##7D22971.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2297;
/* rgb */ color: rgb(125, 34, 151);
/* oklch */ color: oklch(45.1% 0.187 317.4);
Tailwind
colors: {
  custom: {
    50: '#a768b6',
    500: '#7d2297',
    950: '#000000',
  },
}
SCSS
$custom: #7d2297;
$custom-light: #a768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2297",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 286.667,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.18673,
    "h": 317.4
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

primary
#7D2297
secondary
#6EBE57
accent
#E64266
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2297

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

Preview Lab → · Contrast checker → · Palette generator →

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