#7B227C#7B227C

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

Color values

HEX#7B227C
RGBrgb(123, 34, 124)
HSLhsl(299, 57%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(0.8%, 72.6%, 0%, 51.4%)
CIE-LABlab(31.37, 49.25, -31.49)
CIE-LCHlch(31.37, 58.46, 327.40°)
OKLaboklab(42.97% 0.1369 -0.0873)
OKLCHoklch(42.97% 0.162 327.5)
XYZxyz(12.3783, 6.8111, 19.7276)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B227C #237C22
analogous
#4E227C #7B227C #7C2250
triadic
#7B227C #7C7B22 #227C7B
tetradic
#7B227C #7C4E22 #237C22 #22507C
square
#7B227C #7C4E22 #237C22 #22507C
split-complementary
#7B227C #507C22 #227C4E
monochromatic
#1C081C #4B154C #7B227C #AB2FAC #CC4BCE

Accessibility & contrast

On white

8.89
#7B227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7B227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B227C
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B227C#FFFFFF#000000##FFFFFF
##7B227C1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427F
Deuteranopia (green-blind)
#394E7A
Tritanopia (blue-blind)
#7F304D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b227c;
/* rgb */ color: rgb(123, 34, 124);
/* oklch */ color: oklch(43.0% 0.162 327.5);
Tailwind
colors: {
  custom: {
    50: '#a466a2',
    500: '#7b227c',
    950: '#000000',
  },
}
SCSS
$custom: #7b227c;
$custom-light: #a466a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b227c",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 299.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42967,
    "c": 0.16232,
    "h": 327.5
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#7B227C
secondary
#4CAF4B
accent
#E04849
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B227C

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

Preview Lab → · Contrast checker → · Palette generator →

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