#7B2F7D#7B2F7D

#7B2F7D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.145 H 326.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7B2F7D
RGBrgb(123, 47, 125)
HSLhsl(298, 45%, 34%)
HSVhsv(298, 62%, 49%)
CMYKcmyk(1.6%, 62.4%, 0%, 51%)
CIE-LABlab(33.40, 43.91, -28.91)
CIE-LCHlch(33.40, 52.57, 326.64°)
OKLaboklab(44.45% 0.1214 -0.0799)
OKLCHoklch(44.45% 0.145 326.7)
XYZxyz(12.8863, 7.7254, 20.2105)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F7D #317D2F
analogous
#542F7D #7B2F7D #7D2F58
triadic
#7B2F7D #7D7B2F #2F7D7B
tetradic
#7B2F7D #7D542F #317D2F #2F587D
square
#7B2F7D #7D542F #317D2F #2F587D
split-complementary
#7B2F7D #587D2F #2F7D54
monochromatic
#230E24 #4F1E51 #7B2F7D #A740A9 #C262C4

Accessibility & contrast

On white

8.25
#7B2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2F7D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F7D#FFFFFF#000000##FFFFFF
##7B2F7D1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487F
Deuteranopia (green-blind)
#3F527B
Tritanopia (blue-blind)
#7E3951
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2f7d;
/* rgb */ color: rgb(123, 47, 125);
/* oklch */ color: oklch(44.5% 0.145 326.7);
Tailwind
colors: {
  custom: {
    50: '#a46da3',
    500: '#7b2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f7d;
$custom-light: #a46da3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f7d",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 298.462,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44453,
    "c": 0.14531,
    "h": 326.7
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#7B2F7D
secondary
#5FAB5D
accent
#D55356
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7B2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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