#8C23B2#8C23B2

#8C23B2 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.215 H 314.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8C23B2
RGBrgb(140, 35, 178)
HSLhsl(284, 67%, 42%)
HSVhsv(284, 80%, 70%)
CMYKcmyk(21.3%, 80.3%, 0%, 30.2%)
CIE-LABlab(37.83, 62.63, -53.94)
CIE-LCHlch(37.83, 82.65, 319.26°)
OKLaboklab(49.23% 0.1511 -0.1524)
OKLCHoklch(49.23% 0.215 314.8)
XYZxyz(19.4508, 9.9926, 43.0150)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C23B2 #49B223
analogous
#4523B2 #8C23B2 #B22391
triadic
#8C23B2 #B28C23 #23B28C
tetradic
#8C23B2 #B24523 #49B223 #2391B2
square
#8C23B2 #B24523 #49B223 #2391B2
split-complementary
#8C23B2 #91B223 #23B245
monochromatic
#3C0F4C #64197F #8C23B2 #AE3AD8 #C36DE2

Accessibility & contrast

On white

7.00
#8C23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8C23B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C23B2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C23B2#FFFFFF#000000##FFFFFF
##8C23B21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#89466B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c23b2;
/* rgb */ color: rgb(140, 35, 178);
/* oklch */ color: oklch(49.2% 0.215 314.8);
Tailwind
colors: {
  custom: {
    50: '#b26cca',
    500: '#8c23b2',
    950: '#000000',
  },
}
SCSS
$custom: #8c23b2;
$custom-light: #b26cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c23b2",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 284.056,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49227,
    "c": 0.21465,
    "h": 314.8
  },
  "luminance": 0.09992
}

Semantic roles & 50–950 ramp

primary
#8C23B2
secondary
#82C968
accent
#EA3E6C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C23B2

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

Preview Lab → · Contrast checker → · Palette generator →

#8C23B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva