#6C239D#6C239D

#6C239D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.186 H 307.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#6C239D
RGBrgb(108, 35, 157)
HSLhsl(276, 64%, 38%)
HSVhsv(276, 78%, 62%)
CMYKcmyk(31.2%, 77.7%, 0%, 38.4%)
CIE-LABlab(31.40, 52.42, -51.97)
CIE-LCHlch(31.40, 73.82, 315.25°)
OKLaboklab(43.23% 0.1127 -0.1477)
OKLCHoklch(43.23% 0.186 307.3)
XYZxyz(12.8699, 6.8247, 32.5311)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C239D #549D23
analogous
#2F239D #6C239D #9D2391
triadic
#6C239D #9D6C23 #239D6C
tetradic
#6C239D #9D2F23 #549D23 #23919D
square
#6C239D #9D2F23 #549D23 #23919D
split-complementary
#6C239D #919D23 #239D2F
monochromatic
#270D39 #4A186B #6C239D #8E2ECF #A95FDB

Accessibility & contrast

On white

8.88
#6C239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6C239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C239D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C239D#FFFFFF#000000##FFFFFF
##6C239D1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#64415F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6c239d;
/* rgb */ color: rgb(108, 35, 157);
/* oklch */ color: oklch(43.2% 0.186 307.3);
Tailwind
colors: {
  custom: {
    50: '#9b66bb',
    500: '#6c239d',
    950: '#000000',
  },
}
SCSS
$custom: #6c239d;
$custom-light: #9b66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c239d",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 275.902,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43232,
    "c": 0.18579,
    "h": 307.3
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#6C239D
secondary
#84C05C
accent
#E74184
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6C239D

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

Preview Lab → · Contrast checker → · Palette generator →

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