#7B229F#7B229F

#7B229F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.193 H 313.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7B229F
RGBrgb(123, 34, 159)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 79%, 62%)
CMYKcmyk(22.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(33.69, 56.02, -49.38)
CIE-LCHlch(33.69, 74.67, 318.60°)
OKLaboklab(45.35% 0.1336 -0.1396)
OKLCHoklch(45.35% 0.193 313.7)
XYZxyz(14.9973, 7.8587, 33.5210)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B229F #469F22
analogous
#3C229F #7B229F #9F2284
triadic
#7B229F #9F7B22 #229F7B
tetradic
#7B229F #9F3C22 #469F22 #22849F
square
#7B229F #9F3C22 #469F22 #22849F
split-complementary
#7B229F #849F22 #229F3C
monochromatic
#2D0C3A #54176D #7B229F #A22DD1 #B85FDD

Accessibility & contrast

On white

8.17
#7B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B229F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B229F#FFFFFF#000000##FFFFFF
##7B229F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#15519C
Tritanopia (blue-blind)
#774060
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b229f;
/* rgb */ color: rgb(123, 34, 159);
/* oklch */ color: oklch(45.3% 0.193 313.7);
Tailwind
colors: {
  custom: {
    50: '#a668bc',
    500: '#7b229f',
    950: '#000000',
  },
}
SCSS
$custom: #7b229f;
$custom-light: #a668bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b229f",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 282.72,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45349,
    "c": 0.19321,
    "h": 313.7
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#7B229F
secondary
#79C15B
accent
#E84070
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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