#7B2297#7B2297

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

Color values

HEX#7B2297
RGBrgb(123, 34, 151)
HSLhsl(286, 63%, 36%)
HSVhsv(286, 77%, 59%)
CMYKcmyk(18.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(33.11, 54.39, -45.44)
CIE-LCHlch(33.11, 70.87, 320.13°)
OKLaboklab(44.76% 0.1349 -0.128)
OKLCHoklch(44.76% 0.186 316.5)
XYZxyz(14.3255, 7.5900, 29.9826)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2297 #3E9722
analogous
#412297 #7B2297 #972279
triadic
#7B2297 #977B22 #22977B
tetradic
#7B2297 #974122 #3E9722 #227997
square
#7B2297 #974122 #3E9722 #227997
split-complementary
#7B2297 #799722 #229741
monochromatic
#2A0C33 #521765 #7B2297 #A42DC9 #BB5ADA

Accessibility & contrast

On white

8.34
#7B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2297
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2297#FFFFFF#000000##FFFFFF
##7B22971.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2297;
/* rgb */ color: rgb(123, 34, 151);
/* oklch */ color: oklch(44.8% 0.186 316.5);
Tailwind
colors: {
  custom: {
    50: '#a568b6',
    500: '#7b2297',
    950: '#000000',
  },
}
SCSS
$custom: #7b2297;
$custom-light: #a568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2297",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 285.641,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44763,
    "c": 0.18598,
    "h": 316.5
  },
  "luminance": 0.07589
}

Semantic roles & 50–950 ramp

primary
#7B2297
secondary
#6FBE57
accent
#E64269
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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