#7D2398#7D2398

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

Color values

HEX#7D2398
RGBrgb(125, 35, 152)
HSLhsl(286, 63%, 37%)
HSVhsv(286, 77%, 60%)
CMYKcmyk(17.8%, 77%, 0%, 40.4%)
CIE-LABlab(33.63, 54.64, -45.21)
CIE-LCHlch(33.63, 70.91, 320.40°)
OKLaboklab(45.21% 0.1364 -0.1273)
OKLCHoklch(45.21% 0.187 317)
XYZxyz(14.7251, 7.8297, 30.4353)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2398 #3E9823
analogous
#432398 #7D2398 #982379
triadic
#7D2398 #987D23 #23987D
tetradic
#7D2398 #984323 #3E9823 #237998
square
#7D2398 #984323 #3E9823 #237998
split-complementary
#7D2398 #799823 #239843
monochromatic
#2B0C35 #541866 #7D2398 #A62ECA #BC5CD9

Accessibility & contrast

On white

8.18
#7D2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2398
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2398#FFFFFF#000000##FFFFFF
##7D23981.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#255295
Tritanopia (blue-blind)
#7C3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2398;
/* rgb */ color: rgb(125, 35, 152);
/* oklch */ color: oklch(45.2% 0.187 317.0);
Tailwind
colors: {
  custom: {
    50: '#a768b7',
    500: '#7d2398',
    950: '#000000',
  },
}
SCSS
$custom: #7d2398;
$custom-light: #a768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2398",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 286.154,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45211,
    "c": 0.18657,
    "h": 317
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#7D2398
secondary
#70BE59
accent
#E64268
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2398

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

Preview Lab → · Contrast checker → · Palette generator →

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