#7B228B#7B228B

#7B228B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.175 H 321.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7B228B
RGBrgb(123, 34, 139)
HSLhsl(291, 61%, 34%)
HSVhsv(291, 76%, 55%)
CMYKcmyk(11.5%, 75.5%, 0%, 45.5%)
CIE-LABlab(32.30, 52.03, -39.37)
CIE-LCHlch(32.30, 65.25, 322.89°)
OKLaboklab(43.93% 0.1363 -0.1102)
OKLCHoklch(43.93% 0.175 321)
XYZxyz(13.4001, 7.2198, 25.1088)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B228B #328B22
analogous
#47228B #7B228B #8B2267
triadic
#7B228B #8B7B22 #228B7B
tetradic
#7B228B #8B4722 #328B22 #22678B
square
#7B228B #8B4722 #328B22 #22678B
split-complementary
#7B228B #678B22 #228B47
monochromatic
#240A29 #4F165A #7B228B #A72EBC #C153D5

Accessibility & contrast

On white

8.59
#7B228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B228B
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B228B#FFFFFF#000000##FFFFFF
##7B228B1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#2E4F89
Tritanopia (blue-blind)
#7C3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b228b;
/* rgb */ color: rgb(123, 34, 139);
/* oklch */ color: oklch(43.9% 0.175 321.0);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7b228b',
    950: '#000000',
  },
}
SCSS
$custom: #7b228b;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b228b",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 290.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43929,
    "c": 0.17529,
    "h": 321
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#7B228B
secondary
#60B850
accent
#E4445C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B228B

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

Preview Lab → · Contrast checker → · Palette generator →

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