#7B228A#7B228A

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

Color values

HEX#7B228A
RGBrgb(123, 34, 138)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 54%)
CMYKcmyk(10.9%, 75.4%, 0%, 45.9%)
CIE-LABlab(32.24, 51.84, -38.85)
CIE-LCHlch(32.24, 64.78, 323.15°)
OKLaboklab(43.86% 0.1364 -0.1087)
OKLCHoklch(43.86% 0.174 321.4)
XYZxyz(13.3273, 7.1907, 24.7258)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B228A #318A22
analogous
#47228A #7B228A #8A2265
triadic
#7B228A #8A7B22 #228A7B
tetradic
#7B228A #8A4722 #318A22 #22658A
square
#7B228A #8A4722 #318A22 #22658A
split-complementary
#7B228A #658A22 #228A47
monochromatic
#230A28 #4F1659 #7B228A #A72EBB #C252D4

Accessibility & contrast

On white

8.61
#7B228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B228A
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B228A#FFFFFF#000000##FFFFFF
##7B228A1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#2F4F88
Tritanopia (blue-blind)
#7C3654
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b228a;
/* rgb */ color: rgb(123, 34, 138);
/* oklch */ color: oklch(43.9% 0.174 321.4);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7b228a',
    950: '#000000',
  },
}
SCSS
$custom: #7b228a;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b228a",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 291.346,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43862,
    "c": 0.17441,
    "h": 321.4
  },
  "luminance": 0.0719
}

Semantic roles & 50–950 ramp

primary
#7B228A
secondary
#5FB850
accent
#E4445B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B228A

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

Preview Lab → · Contrast checker → · Palette generator →

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