#6C23A3#6C23A3

#6C23A3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.192 H 305.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#6C23A3
RGBrgb(108, 35, 163)
HSLhsl(274, 65%, 39%)
HSVhsv(274, 79%, 64%)
CMYKcmyk(33.7%, 78.5%, 0%, 36.1%)
CIE-LABlab(31.89, 53.79, -54.83)
CIE-LCHlch(31.89, 76.81, 314.45°)
OKLaboklab(43.72% 0.1113 -0.1561)
OKLCHoklch(43.72% 0.192 305.5)
XYZxyz(13.3947, 7.0346, 35.2954)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C23A3 #5AA323
analogous
#2C23A3 #6C23A3 #A3239A
triadic
#6C23A3 #A36C23 #23A36C
tetradic
#6C23A3 #A32C23 #5AA323 #239AA3
square
#6C23A3 #A32C23 #5AA323 #239AA3
split-complementary
#6C23A3 #9AA323 #23A32C
monochromatic
#290D3E #4B1871 #6C23A3 #8D31D3 #A963DD

Accessibility & contrast

On white

8.72
#6C23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C23A3
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C23A3#FFFFFF#000000##FFFFFF
##6C23A31.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#624463
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c23a3;
/* rgb */ color: rgb(108, 35, 163);
/* oklch */ color: oklch(43.7% 0.192 305.5);
Tailwind
colors: {
  custom: {
    50: '#9c67bf',
    500: '#6c23a3',
    950: '#000000',
  },
}
SCSS
$custom: #6c23a3;
$custom-light: #9c67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6c23a3",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 274.219,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4372,
    "c": 0.1917,
    "h": 305.5
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

primary
#6C23A3
secondary
#8AC35F
accent
#E84088
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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