#7B227F#7B227F

#7B227F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.165 H 326.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7B227F
RGBrgb(123, 34, 127)
HSLhsl(297, 58%, 32%)
HSVhsv(297, 73%, 50%)
CMYKcmyk(3.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(31.55, 49.79, -33.09)
CIE-LCHlch(31.55, 59.78, 326.39°)
OKLaboklab(43.15% 0.1369 -0.0919)
OKLCHoklch(43.15% 0.165 326.1)
XYZxyz(12.5709, 6.8882, 20.7420)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B227F #267F22
analogous
#4D227F #7B227F #7F2255
triadic
#7B227F #7F7B22 #227F7B
tetradic
#7B227F #7F4D22 #267F22 #22557F
square
#7B227F #7F4D22 #267F22 #22557F
split-complementary
#7B227F #557F22 #227F4D
monochromatic
#1D081E #4C154F #7B227F #AA2FAF #CA4CCF

Accessibility & contrast

On white

8.83
#7B227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7B227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B227F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B227F#FFFFFF#000000##FFFFFF
##7B227F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4382
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#7E314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b227f;
/* rgb */ color: rgb(123, 34, 127);
/* oklch */ color: oklch(43.2% 0.165 326.1);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7b227f',
    950: '#000000',
  },
}
SCSS
$custom: #7b227f;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b227f",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 297.419,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.16487,
    "h": 326.1
  },
  "luminance": 0.06887
}

Semantic roles & 50–950 ramp

primary
#7B227F
secondary
#50B24B
accent
#E1474D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B227F

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

Preview Lab → · Contrast checker → · Palette generator →

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