#7B227E#7B227E

#7B227E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.164 H 326.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7B227E
RGBrgb(123, 34, 126)
HSLhsl(298, 58%, 31%)
HSVhsv(298, 73%, 49%)
CMYKcmyk(2.4%, 73%, 0%, 50.6%)
CIE-LABlab(31.49, 49.61, -32.56)
CIE-LCHlch(31.49, 59.34, 326.72°)
OKLaboklab(43.09% 0.1369 -0.0904)
OKLCHoklch(43.09% 0.164 326.6)
XYZxyz(12.5061, 6.8622, 20.4005)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B227E #257E22
analogous
#4D227E #7B227E #7E2253
triadic
#7B227E #7E7B22 #227E7B
tetradic
#7B227E #7E4D22 #257E22 #22537E
square
#7B227E #7E4D22 #257E22 #22537E
split-complementary
#7B227E #537E22 #227E4D
monochromatic
#1D081E #4C154E #7B227E #AA2FAE #CA4CCF

Accessibility & contrast

On white

8.85
#7B227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B227E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B227E#FFFFFF#000000##FFFFFF
##7B227E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4381
Deuteranopia (green-blind)
#384E7C
Tritanopia (blue-blind)
#7E314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b227e;
/* rgb */ color: rgb(123, 34, 126);
/* oklch */ color: oklch(43.1% 0.164 326.6);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7b227e',
    950: '#000000',
  },
}
SCSS
$custom: #7b227e;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b227e",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 298.043,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43089,
    "c": 0.16401,
    "h": 326.6
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#7B227E
secondary
#4FB14B
accent
#E1474C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B227E

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

Preview Lab → · Contrast checker → · Palette generator →

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