#7B229C#7B229C

#7B229C is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.191 H 314.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7B229C
RGBrgb(123, 34, 156)
HSLhsl(284, 64%, 37%)
HSVhsv(284, 78%, 61%)
CMYKcmyk(21.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(33.47, 55.40, -47.91)
CIE-LCHlch(33.47, 73.25, 319.15°)
OKLaboklab(45.13% 0.1341 -0.1353)
OKLCHoklch(45.13% 0.191 314.8)
XYZxyz(14.7402, 7.7558, 32.1666)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B229C #439C22
analogous
#3E229C #7B229C #9C2280
triadic
#7B229C #9C7B22 #229C7B
tetradic
#7B229C #9C3E22 #439C22 #22809C
square
#7B229C #9C3E22 #439C22 #22809C
split-complementary
#7B229C #809C22 #229C3E
monochromatic
#2C0C38 #53176A #7B229C #A32DCE #B95DDC

Accessibility & contrast

On white

8.23
#7B229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B229C
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B229C#FFFFFF#000000##FFFFFF
##7B229C1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#1B5199
Tritanopia (blue-blind)
#783E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b229c;
/* rgb */ color: rgb(123, 34, 156);
/* oklch */ color: oklch(45.1% 0.191 314.8);
Tailwind
colors: {
  custom: {
    50: '#a568ba',
    500: '#7b229c',
    950: '#000000',
  },
}
SCSS
$custom: #7b229c;
$custom-light: #a568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b229c",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 283.77,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45127,
    "c": 0.1905,
    "h": 314.8
  },
  "luminance": 0.07755
}

Semantic roles & 50–950 ramp

primary
#7B229C
secondary
#75C05A
accent
#E7416E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B229C

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

Preview Lab → · Contrast checker → · Palette generator →

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