#7B229E#7B229E

#7B229E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.192 H 314.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7B229E
RGBrgb(123, 34, 158)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(22.2%, 78.5%, 0%, 38%)
CIE-LABlab(33.61, 55.81, -48.89)
CIE-LCHlch(33.61, 74.20, 318.78°)
OKLaboklab(45.27% 0.1338 -0.1381)
OKLCHoklch(45.27% 0.192 314.1)
XYZxyz(14.9109, 7.8241, 33.0659)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B229E #459E22
analogous
#3D229E #7B229E #9E2283
triadic
#7B229E #9E7B22 #229E7B
tetradic
#7B229E #9E3D22 #459E22 #22839E
square
#7B229E #9E3D22 #459E22 #22839E
split-complementary
#7B229E #839E22 #229E3D
monochromatic
#2D0C39 #54176C #7B229E #A22DD0 #B95EDC

Accessibility & contrast

On white

8.19
#7B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B229E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B229E#FFFFFF#000000##FFFFFF
##7B229E1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#17519B
Tritanopia (blue-blind)
#783F60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b229e;
/* rgb */ color: rgb(123, 34, 158);
/* oklch */ color: oklch(45.3% 0.192 314.1);
Tailwind
colors: {
  custom: {
    50: '#a568bb',
    500: '#7b229e',
    950: '#000000',
  },
}
SCSS
$custom: #7b229e;
$custom-light: #a568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b229e",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 283.065,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45274,
    "c": 0.19231,
    "h": 314.1
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#7B229E
secondary
#78C15B
accent
#E8406F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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