#7C23B1#7C23B1

#7C23B1 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.209 H 308.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7C23B1
RGBrgb(124, 35, 177)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 69%)
CMYKcmyk(29.9%, 80.2%, 0%, 30.6%)
CIE-LABlab(35.32, 59.64, -57.52)
CIE-LCHlch(35.32, 82.86, 316.03°)
OKLaboklab(46.96% 0.1302 -0.1635)
OKLCHoklch(46.96% 0.209 308.5)
XYZxyz(16.8474, 8.6618, 42.3708)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23B1 #58B123
analogous
#3523B1 #7C23B1 #B1239F
triadic
#7C23B1 #B17C23 #23B17C
tetradic
#7C23B1 #B13523 #58B123 #239FB1
square
#7C23B1 #B13523 #58B123 #239FB1
split-complementary
#7C23B1 #9FB123 #23B135
monochromatic
#340F4B #58197E #7C23B1 #9D39D8 #B66CE2

Accessibility & contrast

On white

7.69
#7C23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7C23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23B1
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23B1#FFFFFF#000000##FFFFFF
##7C23B11.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#74486B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c23b1;
/* rgb */ color: rgb(124, 35, 177);
/* oklch */ color: oklch(47.0% 0.209 308.5);
Tailwind
colors: {
  custom: {
    50: '#a769c9',
    500: '#7c23b1',
    950: '#000000',
  },
}
SCSS
$custom: #7c23b1;
$custom-light: #a769c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23b1",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 277.606,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46957,
    "c": 0.20901,
    "h": 308.5
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#7C23B1
secondary
#8CC868
accent
#EA3E7E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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