#7B229D#7B229D

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

Color values

HEX#7B229D
RGBrgb(123, 34, 157)
HSLhsl(283, 64%, 37%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(21.7%, 78.3%, 0%, 38.4%)
CIE-LABlab(33.54, 55.61, -48.40)
CIE-LCHlch(33.54, 73.72, 318.96°)
OKLaboklab(45.2% 0.134 -0.1367)
OKLCHoklch(45.2% 0.191 314.4)
XYZxyz(14.8252, 7.7899, 32.6144)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B229D #449D22
analogous
#3E229D #7B229D #9D2281
triadic
#7B229D #9D7B22 #229D7B
tetradic
#7B229D #9D3E22 #449D22 #22819D
square
#7B229D #9D3E22 #449D22 #22819D
split-complementary
#7B229D #819D22 #229D3E
monochromatic
#2C0C38 #54176B #7B229D #A22DCF #B95DDC

Accessibility & contrast

On white

8.21
#7B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B229D
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B229D#FFFFFF#000000##FFFFFF
##7B229D1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#19519A
Tritanopia (blue-blind)
#783F5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b229d;
/* rgb */ color: rgb(123, 34, 157);
/* oklch */ color: oklch(45.2% 0.191 314.4);
Tailwind
colors: {
  custom: {
    50: '#a568bb',
    500: '#7b229d',
    950: '#000000',
  },
}
SCSS
$custom: #7b229d;
$custom-light: #a568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b229d",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 283.415,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.452,
    "c": 0.1914,
    "h": 314.4
  },
  "luminance": 0.07789
}

Semantic roles & 50–950 ramp

primary
#7B229D
secondary
#77C15A
accent
#E7406F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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