#7B23A5#7B23A5

#7B23A5 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.198 H 311.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7B23A5
RGBrgb(123, 35, 165)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(25.5%, 78.8%, 0%, 35.3%)
CIE-LABlab(34.25, 56.92, -52.09)
CIE-LCHlch(34.25, 77.15, 317.54°)
OKLaboklab(45.89% 0.1316 -0.1475)
OKLCHoklch(45.89% 0.198 311.7)
XYZxyz(15.5597, 8.1301, 36.3396)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B23A5 #4DA523
analogous
#3A23A5 #7B23A5 #A5238E
triadic
#7B23A5 #A57B23 #23A57B
tetradic
#7B23A5 #A53A23 #4DA523 #238EA5
square
#7B23A5 #A53A23 #4DA523 #238EA5
split-complementary
#7B23A5 #8EA523 #23A53A
monochromatic
#300E40 #551873 #7B23A5 #9F32D3 #B764DE

Accessibility & contrast

On white

8.00
#7B23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B23A5
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B23A5#FFFFFF#000000##FFFFFF
##7B23A51.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0552A2
Tritanopia (blue-blind)
#764364
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b23a5;
/* rgb */ color: rgb(123, 35, 165);
/* oklch */ color: oklch(45.9% 0.198 311.7);
Tailwind
colors: {
  custom: {
    50: '#a669c0',
    500: '#7b23a5',
    950: '#000000',
  },
}
SCSS
$custom: #7b23a5;
$custom-light: #a669c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b23a5",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 280.615,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.1977,
    "h": 311.7
  },
  "luminance": 0.0813
}

Semantic roles & 50–950 ramp

primary
#7B23A5
secondary
#80C460
accent
#E84076
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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