#6C23A5#6C23A5

#6C23A5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.194 H 304.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6C23A5
RGBrgb(108, 35, 165)
HSLhsl(274, 65%, 39%)
HSVhsv(274, 79%, 65%)
CMYKcmyk(34.5%, 78.8%, 0%, 35.3%)
CIE-LABlab(32.05, 54.25, -55.77)
CIE-LCHlch(32.05, 77.80, 314.21°)
OKLaboklab(43.89% 0.1108 -0.1589)
OKLCHoklch(43.89% 0.194 304.9)
XYZxyz(13.5754, 7.1069, 36.2466)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C23A5 #5CA523
analogous
#2B23A5 #6C23A5 #A5239D
triadic
#6C23A5 #A56C23 #23A56C
tetradic
#6C23A5 #A52B23 #5CA523 #239DA5
square
#6C23A5 #A52B23 #5CA523 #239DA5
split-complementary
#6C23A5 #9DA523 #23A52B
monochromatic
#2A0E40 #4B1873 #6C23A5 #8D32D3 #A964DE

Accessibility & contrast

On white

8.67
#6C23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6C23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C23A5
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C23A5#FFFFFF#000000##FFFFFF
##6C23A51.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#004BA2
Tritanopia (blue-blind)
#614564
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c23a5;
/* rgb */ color: rgb(108, 35, 165);
/* oklch */ color: oklch(43.9% 0.194 304.9);
Tailwind
colors: {
  custom: {
    50: '#9c67c1',
    500: '#6c23a5',
    950: '#000000',
  },
}
SCSS
$custom: #6c23a5;
$custom-light: #9c67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c23a5",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 273.692,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43885,
    "c": 0.19368,
    "h": 304.9
  },
  "luminance": 0.07107
}

Semantic roles & 50–950 ramp

primary
#6C23A5
secondary
#8CC460
accent
#E8408A
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C23A5

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

Preview Lab → · Contrast checker → · Palette generator →

#6C23A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva