#7B226E#7B226E

#7B226E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.151 H 334.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7B226E
RGBrgb(123, 34, 110)
HSLhsl(309, 57%, 31%)
HSVhsv(309, 72%, 48%)
CMYKcmyk(0%, 72.4%, 10.6%, 51.8%)
CIE-LABlab(30.60, 46.84, -23.84)
CIE-LCHlch(30.60, 52.56, 333.02°)
OKLaboklab(42.16% 0.1361 -0.0652)
OKLCHoklch(42.16% 0.151 334.4)
XYZxyz(11.5550, 6.4818, 15.3914)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B226E #227B2F
analogous
#5B227B #7B226E #7B2241
triadic
#7B226E #6E7B22 #226E7B
tetradic
#7B226E #7B5B22 #227B2F #22417B
square
#7B226E #7B5B22 #227B2F #22417B
split-complementary
#7B226E #417B22 #227B5B
monochromatic
#1B0718 #4B1543 #7B226E #AB2F99 #CD4ABA

Accessibility & contrast

On white

9.15
#7B226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7B226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B226E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B226E#FFFFFF#000000##FFFFFF
##7B226E1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214070
Deuteranopia (green-blind)
#404D6C
Tritanopia (blue-blind)
#812945
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b226e;
/* rgb */ color: rgb(123, 34, 110);
/* oklch */ color: oklch(42.2% 0.151 334.4);
Tailwind
colors: {
  custom: {
    50: '#a46698',
    500: '#7b226e',
    950: '#000000',
  },
}
SCSS
$custom: #7b226e;
$custom-light: #a46698;
$custom-dark: #000000;
JSON
{
  "hex": "#7b226e",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 308.764,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42156,
    "c": 0.1509,
    "h": 334.4
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#7B226E
secondary
#4BAE59
accent
#E05E48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B226E

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

Preview Lab → · Contrast checker → · Palette generator →

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