#7B227D#7B227D

#7B227D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.163 H 327.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7B227D
RGBrgb(123, 34, 125)
HSLhsl(299, 57%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(1.6%, 72.8%, 0%, 51%)
CIE-LABlab(31.43, 49.43, -32.03)
CIE-LCHlch(31.43, 58.90, 327.06°)
OKLaboklab(43.03% 0.1369 -0.0888)
OKLCHoklch(43.03% 0.163 327)
XYZxyz(12.4419, 6.8365, 20.0623)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B227D #247D22
analogous
#4D227D #7B227D #7D2251
triadic
#7B227D #7D7B22 #227D7B
tetradic
#7B227D #7D4D22 #247D22 #22517D
square
#7B227D #7D4D22 #247D22 #22517D
split-complementary
#7B227D #517D22 #227D4D
monochromatic
#1C081D #4C154D #7B227D #AA2FAD #CB4BCE

Accessibility & contrast

On white

8.87
#7B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B227D
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B227D#FFFFFF#000000##FFFFFF
##7B227D1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104380
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#7F304D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b227d;
/* rgb */ color: rgb(123, 34, 125);
/* oklch */ color: oklch(43.0% 0.163 327.0);
Tailwind
colors: {
  custom: {
    50: '#a466a3',
    500: '#7b227d',
    950: '#000000',
  },
}
SCSS
$custom: #7b227d;
$custom-light: #a466a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b227d",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 298.681,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43028,
    "c": 0.16316,
    "h": 327
  },
  "luminance": 0.06836
}

Semantic roles & 50–950 ramp

primary
#7B227D
secondary
#4DB04B
accent
#E0474B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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