#7B227A#7B227A

#7B227A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.161 H 328.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7B227A
RGBrgb(123, 34, 122)
HSLhsl(301, 57%, 31%)
HSVhsv(301, 72%, 48%)
CMYKcmyk(0%, 72.4%, 0.8%, 51.8%)
CIE-LABlab(31.26, 48.89, -30.42)
CIE-LCHlch(31.26, 57.58, 328.11°)
OKLaboklab(42.85% 0.1368 -0.0841)
OKLCHoklch(42.85% 0.161 328.4)
XYZxyz(12.2531, 6.7610, 19.0682)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B227A #227B23
analogous
#4F227B #7B227A #7B224D
triadic
#7B227A #7A7B22 #227A7B
tetradic
#7B227A #7B4F22 #227B23 #224D7B
square
#7B227A #7B4F22 #227B23 #224D7B
split-complementary
#7B227A #4D7B22 #227B4F
monochromatic
#1B071B #4B154A #7B227A #AB2FAA #CD4ACC

Accessibility & contrast

On white

8.93
#7B227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7B227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B227A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B227A#FFFFFF#000000##FFFFFF
##7B227A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#3A4E78
Tritanopia (blue-blind)
#7F2F4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b227a;
/* rgb */ color: rgb(123, 34, 122);
/* oklch */ color: oklch(42.8% 0.161 328.4);
Tailwind
colors: {
  custom: {
    50: '#a466a1',
    500: '#7b227a',
    950: '#000000',
  },
}
SCSS
$custom: #7b227a;
$custom-light: #a466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b227a",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 300.674,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.16064,
    "h": 328.4
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#7B227A
secondary
#4BAE4C
accent
#E04A48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B227A

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

Preview Lab → · Contrast checker → · Palette generator →

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