#7B2298#7B2298

#7B2298 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.187 H 316.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7B2298
RGBrgb(123, 34, 152)
HSLhsl(285, 63%, 36%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.18, 54.59, -45.93)
CIE-LCHlch(33.18, 71.35, 319.92°)
OKLaboklab(44.84% 0.1348 -0.1295)
OKLCHoklch(44.84% 0.187 316.1)
XYZxyz(14.4070, 7.6226, 30.4121)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2298 #3F9822
analogous
#402298 #7B2298 #98227A
triadic
#7B2298 #987B22 #22987B
tetradic
#7B2298 #984022 #3F9822 #227A98
square
#7B2298 #984022 #3F9822 #227A98
split-complementary
#7B2298 #7A9822 #229840
monochromatic
#2A0C34 #531766 #7B2298 #A32DCA #BB5ADA

Accessibility & contrast

On white

8.32
#7B2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2298
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2298#FFFFFF#000000##FFFFFF
##7B22981.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#215095
Tritanopia (blue-blind)
#793C5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2298;
/* rgb */ color: rgb(123, 34, 152);
/* oklch */ color: oklch(44.8% 0.187 316.1);
Tailwind
colors: {
  custom: {
    50: '#a568b7',
    500: '#7b2298',
    950: '#000000',
  },
}
SCSS
$custom: #7b2298;
$custom-light: #a568b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2298",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 285.254,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44835,
    "c": 0.18688,
    "h": 316.1
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#7B2298
secondary
#71BE57
accent
#E6416A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2298

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

Preview Lab → · Contrast checker → · Palette generator →

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