#7B226D#7B226D

#7B226D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.1% C 0.150 H 334.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7B226D
RGBrgb(123, 34, 109)
HSLhsl(309, 57%, 31%)
HSVhsv(309, 72%, 48%)
CMYKcmyk(0%, 72.4%, 11.4%, 51.8%)
CIE-LABlab(30.54, 46.68, -23.29)
CIE-LCHlch(30.54, 52.17, 333.49°)
OKLaboklab(42.1% 0.136 -0.0636)
OKLCHoklch(42.1% 0.15 334.9)
XYZxyz(11.5008, 6.4601, 15.1062)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B226D #227B30
analogous
#5C227B #7B226D #7B2240
triadic
#7B226D #6D7B22 #226D7B
tetradic
#7B226D #7B5C22 #227B30 #22407B
square
#7B226D #7B5C22 #227B30 #22407B
split-complementary
#7B226D #407B22 #227B5C
monochromatic
#1B0718 #4B1543 #7B226D #AB2F97 #CD4AB8

Accessibility & contrast

On white

9.16
#7B226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B226D
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B226D#FFFFFF#000000##FFFFFF
##7B226D1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6F
Deuteranopia (green-blind)
#404D6B
Tritanopia (blue-blind)
#812944
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b226d;
/* rgb */ color: rgb(123, 34, 109);
/* oklch */ color: oklch(42.1% 0.150 334.9);
Tailwind
colors: {
  custom: {
    50: '#a46697',
    500: '#7b226d',
    950: '#000000',
  },
}
SCSS
$custom: #7b226d;
$custom-light: #a46697;
$custom-dark: #000000;
JSON
{
  "hex": "#7b226d",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 309.438,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42101,
    "c": 0.15012,
    "h": 334.9
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#7B226D
secondary
#4BAE5B
accent
#E06048
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B226D

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

Preview Lab → · Contrast checker → · Palette generator →

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