#7B229A#7B229A

#7B229A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.189 H 315.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7B229A
RGBrgb(123, 34, 154)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(20.1%, 77.9%, 0%, 39.6%)
CIE-LABlab(33.33, 55.00, -46.93)
CIE-LCHlch(33.33, 72.29, 319.53°)
OKLaboklab(44.98% 0.1345 -0.1324)
OKLCHoklch(44.98% 0.189 315.4)
XYZxyz(14.5722, 7.6887, 31.2820)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B229A #419A22
analogous
#3F229A #7B229A #9A227D
triadic
#7B229A #9A7B22 #229A7B
tetradic
#7B229A #9A3F22 #419A22 #227D9A
square
#7B229A #9A3F22 #419A22 #227D9A
split-complementary
#7B229A #7D9A22 #229A3F
monochromatic
#2B0C36 #531768 #7B229A #A32DCC #BA5BDB

Accessibility & contrast

On white

8.28
#7B229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B229A
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B229A#FFFFFF#000000##FFFFFF
##7B229A1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#1E5197
Tritanopia (blue-blind)
#793D5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b229a;
/* rgb */ color: rgb(123, 34, 154);
/* oklch */ color: oklch(45.0% 0.189 315.4);
Tailwind
colors: {
  custom: {
    50: '#a568b8',
    500: '#7b229a',
    950: '#000000',
  },
}
SCSS
$custom: #7b229a;
$custom-light: #a568b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b229a",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 284.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.18869,
    "h": 315.4
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#7B229A
secondary
#73BF58
accent
#E7416C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B229A

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

Preview Lab → · Contrast checker → · Palette generator →

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