#7B23AC#7B23AC

#7B23AC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.204 H 309.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7B23AC
RGBrgb(123, 35, 172)
HSLhsl(279, 66%, 41%)
HSVhsv(279, 80%, 67%)
CMYKcmyk(28.5%, 79.7%, 0%, 32.5%)
CIE-LABlab(34.79, 58.40, -55.42)
CIE-LCHlch(34.79, 80.51, 316.50°)
OKLaboklab(46.43% 0.13 -0.1573)
OKLCHoklch(46.43% 0.204 309.6)
XYZxyz(16.2143, 8.3919, 39.7874)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B23AC #54AC23
analogous
#3623AC #7B23AC #AC2398
triadic
#7B23AC #AC7B23 #23AC7B
tetradic
#7B23AC #AC3623 #54AC23 #2398AC
square
#7B23AC #AC3623 #54AC23 #2398AC
split-complementary
#7B23AC #98AC23 #23AC36
monochromatic
#320E46 #571979 #7B23AC #9D36D6 #B669E0

Accessibility & contrast

On white

7.84
#7B23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7B23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B23AC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B23AC#FFFFFF#000000##FFFFFF
##7B23AC1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#744668
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b23ac;
/* rgb */ color: rgb(123, 35, 172);
/* oklch */ color: oklch(46.4% 0.204 309.6);
Tailwind
colors: {
  custom: {
    50: '#a669c6',
    500: '#7b23ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b23ac;
$custom-light: #a669c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b23ac",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 278.54,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46428,
    "c": 0.20413,
    "h": 309.6
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#7B23AC
secondary
#87C664
accent
#E93F7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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