#7B227B#7B227B

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

Color values

HEX#7B227B
RGBrgb(123, 34, 123)
HSLhsl(300, 57%, 31%)
HSVhsv(300, 72%, 48%)
CMYKcmyk(0%, 72.4%, 0%, 51.8%)
CIE-LABlab(31.31, 49.07, -30.96)
CIE-LCHlch(31.31, 58.02, 327.75°)
OKLaboklab(42.91% 0.1369 -0.0857)
OKLCHoklch(42.91% 0.161 327.9)
XYZxyz(12.3154, 6.7859, 19.3962)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B227B #227B22
analogous
#4E227B #7B227B #7B224E
triadic
#7B227B #7B7B22 #227B7B
tetradic
#7B227B #7B4E22 #227B22 #224E7B
square
#7B227B #7B4E22 #227B22 #224E7B
split-complementary
#7B227B #4E7B22 #227B4E
monochromatic
#1B071B #4B154B #7B227B #AB2FAB #CD4ACD

Accessibility & contrast

On white

8.91
#7B227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B227B
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B227B#FFFFFF#000000##FFFFFF
##7B227B1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#394E79
Tritanopia (blue-blind)
#7F2F4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b227b;
/* rgb */ color: rgb(123, 34, 123);
/* oklch */ color: oklch(42.9% 0.161 327.9);
Tailwind
colors: {
  custom: {
    50: '#a466a1',
    500: '#7b227b',
    950: '#000000',
  },
}
SCSS
$custom: #7b227b;
$custom-light: #a466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b227b",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42906,
    "c": 0.16148,
    "h": 327.9
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#7B227B
secondary
#4BAE4B
accent
#E04848
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B227B

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

Preview Lab → · Contrast checker → · Palette generator →

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