#7B228C#7B228C

#7B228C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.176 H 320.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7B228C
RGBrgb(123, 34, 140)
HSLhsl(290, 61%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(32.37, 52.22, -39.88)
CIE-LCHlch(32.37, 65.71, 322.63°)
OKLaboklab(44% 0.1362 -0.1117)
OKLCHoklch(44% 0.176 320.6)
XYZxyz(13.4735, 7.2492, 25.4954)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B228C #338C22
analogous
#46228C #7B228C #8C2268
triadic
#7B228C #8C7B22 #228C7B
tetradic
#7B228C #8C4622 #338C22 #22688C
square
#7B228C #8C4622 #338C22 #22688C
split-complementary
#7B228C #688C22 #228C46
monochromatic
#240A2A #50165B #7B228C #A62EBD #C053D5

Accessibility & contrast

On white

8.57
#7B228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7B228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B228C
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B228C#FFFFFF#000000##FFFFFF
##7B228C1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2D4F8A
Tritanopia (blue-blind)
#7C3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b228c;
/* rgb */ color: rgb(123, 34, 140);
/* oklch */ color: oklch(44.0% 0.176 320.6);
Tailwind
colors: {
  custom: {
    50: '#a567ae',
    500: '#7b228c',
    950: '#000000',
  },
}
SCSS
$custom: #7b228c;
$custom-light: #a567ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7b228c",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 290.377,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43997,
    "c": 0.17617,
    "h": 320.6
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#7B228C
secondary
#62B951
accent
#E4445D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B228C

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

Preview Lab → · Contrast checker → · Palette generator →

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