#7B2299#7B2299

#7B2299 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.188 H 315.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7B2299
RGBrgb(123, 34, 153)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.6%, 77.8%, 0%, 40%)
CIE-LABlab(33.25, 54.79, -46.43)
CIE-LCHlch(33.25, 71.82, 319.72°)
OKLaboklab(44.91% 0.1346 -0.1309)
OKLCHoklch(44.91% 0.188 315.8)
XYZxyz(14.4893, 7.6555, 30.8452)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2299 #409922
analogous
#402299 #7B2299 #99227C
triadic
#7B2299 #997B22 #22997B
tetradic
#7B2299 #994022 #409922 #227C99
square
#7B2299 #994022 #409922 #227C99
split-complementary
#7B2299 #7C9922 #229940
monochromatic
#2A0C35 #531767 #7B2299 #A32DCB #BA5BDB

Accessibility & contrast

On white

8.30
#7B2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2299
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2299#FFFFFF#000000##FFFFFF
##7B22991.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#1F5196
Tritanopia (blue-blind)
#793D5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2299;
/* rgb */ color: rgb(123, 34, 153);
/* oklch */ color: oklch(44.9% 0.188 315.8);
Tailwind
colors: {
  custom: {
    50: '#a568b8',
    500: '#7b2299',
    950: '#000000',
  },
}
SCSS
$custom: #7b2299;
$custom-light: #a568b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2299",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 284.874,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.18778,
    "h": 315.8
  },
  "luminance": 0.07655
}

Semantic roles & 50–950 ramp

primary
#7B2299
secondary
#72BF58
accent
#E7416B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2299

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

Preview Lab → · Contrast checker → · Palette generator →

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