#7A2298#7A2298

#7A2298 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.187 H 315.7°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7A2298
RGBrgb(122, 34, 152)
HSLhsl(285, 63%, 36%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.7%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.03, 54.39, -46.20)
CIE-LCHlch(33.03, 71.36, 319.66°)
OKLaboklab(44.69% 0.1335 -0.1303)
OKLCHoklch(44.69% 0.187 315.7)
XYZxyz(14.2647, 7.5492, 30.4054)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2298 #409822
analogous
#3F2298 #7A2298 #98227B
triadic
#7A2298 #987A22 #22987A
tetradic
#7A2298 #983F22 #409822 #227B98
square
#7A2298 #983F22 #409822 #227B98
split-complementary
#7A2298 #7B9822 #22983F
monochromatic
#2A0C34 #521766 #7A2298 #A22DCA #BA5ADA

Accessibility & contrast

On white

8.37
#7A2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7A2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2298
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2298#FFFFFF#000000##FFFFFF
##7A22981.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#1F5095
Tritanopia (blue-blind)
#783D5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2298;
/* rgb */ color: rgb(122, 34, 152);
/* oklch */ color: oklch(44.7% 0.187 315.7);
Tailwind
colors: {
  custom: {
    50: '#a467b7',
    500: '#7a2298',
    950: '#000000',
  },
}
SCSS
$custom: #7a2298;
$custom-light: #a467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2298",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 284.746,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44692,
    "c": 0.18652,
    "h": 315.7
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#7A2298
secondary
#72BE57
accent
#E6416B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2298

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

Preview Lab → · Contrast checker → · Palette generator →

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