#7B23A4#7B23A4

#7B23A4 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.197 H 312.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7B23A4
RGBrgb(123, 35, 164)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 64%)
CMYKcmyk(25%, 78.7%, 0%, 35.7%)
CIE-LABlab(34.18, 56.71, -51.61)
CIE-LCHlch(34.18, 76.67, 317.70°)
OKLaboklab(45.81% 0.1318 -0.1461)
OKLCHoklch(45.81% 0.197 312)
XYZxyz(15.4690, 8.0938, 35.8621)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B23A4 #4CA423
analogous
#3B23A4 #7B23A4 #A4238D
triadic
#7B23A4 #A47B23 #23A47B
tetradic
#7B23A4 #A43B23 #4CA423 #238DA4
square
#7B23A4 #A43B23 #4CA423 #238DA4
split-complementary
#7B23A4 #8DA423 #23A43B
monochromatic
#2F0D3F #551872 #7B23A4 #A031D3 #B764DE

Accessibility & contrast

On white

8.02
#7B23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7B23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B23A4
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B23A4#FFFFFF#000000##FFFFFF
##7B23A41.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0952A1
Tritanopia (blue-blind)
#764263
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b23a4;
/* rgb */ color: rgb(123, 35, 164);
/* oklch */ color: oklch(45.8% 0.197 312.0);
Tailwind
colors: {
  custom: {
    50: '#a669c0',
    500: '#7b23a4',
    950: '#000000',
  },
}
SCSS
$custom: #7b23a4;
$custom-light: #a669c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b23a4",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 280.93,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4581,
    "c": 0.19677,
    "h": 312
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#7B23A4
secondary
#7FC360
accent
#E84075
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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