#7B23A6#7B23A6

#7B23A6 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.199 H 311.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7B23A6
RGBrgb(123, 35, 166)
HSLhsl(280, 65%, 39%)
HSVhsv(280, 79%, 65%)
CMYKcmyk(25.9%, 78.9%, 0%, 34.9%)
CIE-LABlab(34.33, 57.13, -52.57)
CIE-LCHlch(34.33, 77.63, 317.38°)
OKLaboklab(45.96% 0.1314 -0.149)
OKLCHoklch(45.96% 0.199 311.4)
XYZxyz(15.6510, 8.1666, 36.8208)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B23A6 #4EA623
analogous
#3923A6 #7B23A6 #A62390
triadic
#7B23A6 #A67B23 #23A67B
tetradic
#7B23A6 #A63923 #4EA623 #2390A6
square
#7B23A6 #A63923 #4EA623 #2390A6
split-complementary
#7B23A6 #90A623 #23A639
monochromatic
#300E41 #561873 #7B23A6 #9F32D4 #B765DF

Accessibility & contrast

On white

7.98
#7B23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B23A6
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B23A6#FFFFFF#000000##FFFFFF
##7B23A61.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0152A3
Tritanopia (blue-blind)
#754364
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b23a6;
/* rgb */ color: rgb(123, 35, 166);
/* oklch */ color: oklch(46.0% 0.199 311.4);
Tailwind
colors: {
  custom: {
    50: '#a669c1',
    500: '#7b23a6',
    950: '#000000',
  },
}
SCSS
$custom: #7b23a6;
$custom-light: #a669c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b23a6",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 280.305,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.19861,
    "h": 311.4
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#7B23A6
secondary
#81C461
accent
#E84077
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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