#7C23BB#7C23BB

#7C23BB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.218 H 305.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7C23BB
RGBrgb(124, 35, 187)
HSLhsl(275, 68%, 44%)
HSVhsv(275, 81%, 73%)
CMYKcmyk(33.7%, 81.3%, 0%, 26.7%)
CIE-LABlab(36.13, 61.80, -62.14)
CIE-LCHlch(36.13, 87.64, 314.84°)
OKLaboklab(47.77% 0.1276 -0.1771)
OKLCHoklch(47.77% 0.218 305.8)
XYZxyz(17.8808, 9.0752, 47.8138)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C23BB #62BB23
analogous
#3023BB #7C23BB #BB23AE
triadic
#7C23BB #BB7C23 #23BB7C
tetradic
#7C23BB #BB3023 #62BB23 #23AEBB
square
#7C23BB #BB3023 #62BB23 #23AEBB
split-complementary
#7C23BB #AEBB23 #23BB30
monochromatic
#381054 #5A1987 #7C23BB #9B40DB #B674E5

Accessibility & contrast

On white

7.46
#7C23BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C23BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C23BB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C23BB#FFFFFF#000000##FFFFFF
##7C23BB1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#704C71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c23bb;
/* rgb */ color: rgb(124, 35, 187);
/* oklch */ color: oklch(47.8% 0.218 305.8);
Tailwind
colors: {
  custom: {
    50: '#a86ad0',
    500: '#7c23bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c23bb;
$custom-light: #a86ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c23bb",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 187
  },
  "hsl": {
    "h": 275.132,
    "s": 68.468,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47767,
    "c": 0.21822,
    "h": 305.8
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#7C23BB
secondary
#95CC6E
accent
#EB3C85
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C23BB

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

Preview Lab → · Contrast checker → · Palette generator →

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