#7B2F8A#7B2F8A

#7B2F8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.158 H 320.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7B2F8A
RGBrgb(123, 47, 138)
HSLhsl(290, 49%, 36%)
HSVhsv(290, 66%, 54%)
CMYKcmyk(10.9%, 65.9%, 0%, 45.9%)
CIE-LABlab(34.15, 46.46, -35.80)
CIE-LCHlch(34.15, 58.65, 322.38°)
OKLaboklab(45.23% 0.1219 -0.0999)
OKLCHoklch(45.23% 0.158 320.7)
XYZxyz(13.7718, 8.0796, 24.8739)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F8A #3E8A2F
analogous
#4E2F8A #7B2F8A #8A2F6C
triadic
#7B2F8A #8A7B2F #2F8A7B
tetradic
#7B2F8A #8A4E2F #3E8A2F #2F6C8A
square
#7B2F8A #8A4E2F #3E8A2F #2F6C8A
split-complementary
#7B2F8A #6C8A2F #2F8A4E
monochromatic
#2A102F #521F5C #7B2F8A #A43FB8 #BB68CC

Accessibility & contrast

On white

8.03
#7B2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7B2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2F8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F8A#FFFFFF#000000##FFFFFF
##7B2F8A1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#7C3E58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2f8a;
/* rgb */ color: rgb(123, 47, 138);
/* oklch */ color: oklch(45.2% 0.158 320.7);
Tailwind
colors: {
  custom: {
    50: '#a46dac',
    500: '#7b2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f8a;
$custom-light: #a46dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f8a",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 290.11,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45233,
    "c": 0.15763,
    "h": 320.7
  },
  "luminance": 0.08079
}

Semantic roles & 50–950 ramp

primary
#7B2F8A
secondary
#6FB362
accent
#D94F66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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