#7C23D4#7C23D4

#7C23D4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.9% C 0.241 H 299.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7C23D4
RGBrgb(124, 35, 212)
HSLhsl(270, 72%, 48%)
HSVhsv(270, 83%, 83%)
CMYKcmyk(41.5%, 83.5%, 0%, 16.9%)
CIE-LABlab(38.27, 67.35, -73.22)
CIE-LCHlch(38.27, 99.49, 312.61°)
OKLaboklab(49.91% 0.1197 -0.2096)
OKLCHoklch(49.91% 0.241 299.7)
XYZxyz(20.7939, 10.2404, 63.1556)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23D4 #7BD423
analogous
#2323D4 #7C23D4 #D423D3
triadic
#7C23D4 #D47C23 #23D47C
tetradic
#7C23D4 #D42323 #7BD423 #23D3D4
square
#7C23D4 #D42323 #7BD423 #23D3D4
split-complementary
#7C23D4 #D3D423 #23D423
monochromatic
#3F126B #5D1A9F #7C23D4 #9B52E2 #B986EB

Accessibility & contrast

On white

6.89
#7C23D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7C23D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C23D4
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23D4#FFFFFF#000000##FFFFFF
##7C23D41.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#0059D1
Tritanopia (blue-blind)
#66587F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c23d4;
/* rgb */ color: rgb(124, 35, 212);
/* oklch */ color: oklch(49.9% 0.241 299.7);
Tailwind
colors: {
  custom: {
    50: '#aa6be2',
    500: '#7c23d4',
    950: '#000000',
  },
}
SCSS
$custom: #7c23d4;
$custom-light: #aa6be2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23d4",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 270.169,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49907,
    "c": 0.24137,
    "h": 299.7
  },
  "luminance": 0.10241
}

Semantic roles & 50–950 ramp

primary
#7C23D4
secondary
#A9D47E
accent
#EE3993
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110816
muted
#807A84

Preview Lab

Preview with #7C23D4

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

Preview Lab → · Contrast checker → · Palette generator →

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