#7B2E87#7B2E87

#7B2E87 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.156 H 322.0°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7B2E87
RGBrgb(123, 46, 135)
HSLhsl(292, 49%, 35%)
HSVhsv(292, 66%, 53%)
CMYKcmyk(8.9%, 65.9%, 0%, 47.1%)
CIE-LABlab(33.80, 46.32, -34.49)
CIE-LCHlch(33.80, 57.75, 323.32°)
OKLaboklab(44.93% 0.1231 -0.0961)
OKLCHoklch(44.93% 0.156 322)
XYZxyz(13.5181, 7.9149, 23.7327)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2E87 #3A872E
analogous
#4E2E87 #7B2E87 #872E66
triadic
#7B2E87 #877B2E #2E877B
tetradic
#7B2E87 #874E2E #3A872E #2E6687
square
#7B2E87 #874E2E #3A872E #2E6687
split-complementary
#7B2E87 #66872E #2E874E
monochromatic
#280F2C #511E59 #7B2E87 #A53EB5 #BD65CA

Accessibility & contrast

On white

8.13
#7B2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2E87
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2E87#FFFFFF#000000##FFFFFF
##7B2E871.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8A
Deuteranopia (green-blind)
#395285
Tritanopia (blue-blind)
#7C3C56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2e87;
/* rgb */ color: rgb(123, 46, 135);
/* oklch */ color: oklch(44.9% 0.156 322.0);
Tailwind
colors: {
  custom: {
    50: '#a46daa',
    500: '#7b2e87',
    950: '#000000',
  },
}
SCSS
$custom: #7b2e87;
$custom-light: #a46daa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2e87",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 291.91,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44927,
    "c": 0.15619,
    "h": 322
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#7B2E87
secondary
#6BB160
accent
#D94F62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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