#6C23A4#6C23A4

#6C23A4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.193 H 305.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#6C23A4
RGBrgb(108, 35, 164)
HSLhsl(274, 65%, 39%)
HSVhsv(274, 79%, 64%)
CMYKcmyk(34.1%, 78.7%, 0%, 35.7%)
CIE-LABlab(31.97, 54.02, -55.30)
CIE-LCHlch(31.97, 77.31, 314.33°)
OKLaboklab(43.8% 0.111 -0.1575)
OKLCHoklch(43.8% 0.193 305.2)
XYZxyz(13.4847, 7.0706, 35.7691)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C23A4 #5BA423
analogous
#2B23A4 #6C23A4 #A4239C
triadic
#6C23A4 #A46C23 #23A46C
tetradic
#6C23A4 #A42B23 #5BA423 #239CA4
square
#6C23A4 #A42B23 #5BA423 #239CA4
split-complementary
#6C23A4 #9CA423 #23A42B
monochromatic
#2A0D3F #4B1872 #6C23A4 #8D31D3 #A964DE

Accessibility & contrast

On white

8.70
#6C23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6C23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C23A4
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C23A4#FFFFFF#000000##FFFFFF
##6C23A41.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#614563
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c23a4;
/* rgb */ color: rgb(108, 35, 164);
/* oklch */ color: oklch(43.8% 0.193 305.2);
Tailwind
colors: {
  custom: {
    50: '#9c67c0',
    500: '#6c23a4',
    950: '#000000',
  },
}
SCSS
$custom: #6c23a4;
$custom-light: #9c67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c23a4",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 273.953,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43802,
    "c": 0.19269,
    "h": 305.2
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

primary
#6C23A4
secondary
#8BC360
accent
#E84089
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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