#7C23AA#7C23AA

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

Color values

HEX#7C23AA
RGBrgb(124, 35, 170)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 79%, 67%)
CMYKcmyk(27.1%, 79.4%, 0%, 33.3%)
CIE-LABlab(34.78, 58.15, -54.23)
CIE-LCHlch(34.78, 79.51, 317.00°)
OKLaboklab(46.41% 0.1319 -0.1538)
OKLCHoklch(46.41% 0.203 310.6)
XYZxyz(16.1675, 8.3898, 38.7901)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23AA #51AA23
analogous
#3923AA #7C23AA #AA2394
triadic
#7C23AA #AA7C23 #23AA7C
tetradic
#7C23AA #AA3923 #51AA23 #2394AA
square
#7C23AA #AA3923 #51AA23 #2394AA
split-complementary
#7C23AA #94AA23 #23AA39
monochromatic
#320E44 #571977 #7C23AA #9F35D5 #B768E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C23AA#FFFFFF#000000##FFFFFF
##7C23AA1.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)
#004EAE
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#764567
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c23aa;
/* rgb */ color: rgb(124, 35, 170);
/* oklch */ color: oklch(46.4% 0.203 310.6);
Tailwind
colors: {
  custom: {
    50: '#a769c4',
    500: '#7c23aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c23aa;
$custom-light: #a769c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23aa",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 170
  },
  "hsl": {
    "h": 279.556,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46408,
    "c": 0.20258,
    "h": 310.6
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#7C23AA
secondary
#85C663
accent
#E93F79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C23AA

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

Preview Lab → · Contrast checker → · Palette generator →

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