#6C229C#6C229C

#6C229C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.186 H 307.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#6C229C
RGBrgb(108, 34, 156)
HSLhsl(276, 64%, 37%)
HSVhsv(276, 78%, 61%)
CMYKcmyk(30.8%, 78.2%, 0%, 38.8%)
CIE-LABlab(31.19, 52.58, -51.71)
CIE-LCHlch(31.19, 73.75, 315.48°)
OKLaboklab(43.06% 0.1138 -0.147)
OKLCHoklch(43.06% 0.186 307.8)
XYZxyz(12.7558, 6.7327, 32.0736)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C229C #529C22
analogous
#2F229C #6C229C #9C228F
triadic
#6C229C #9C6C22 #229C6C
tetradic
#6C229C #9C2F22 #529C22 #228F9C
square
#6C229C #9C2F22 #529C22 #228F9C
split-complementary
#6C229C #8F9C22 #229C2F
monochromatic
#260C38 #49176A #6C229C #8F2DCE #AA5DDC

Accessibility & contrast

On white

8.95
#6C229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6C229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C229C
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C229C#FFFFFF#000000##FFFFFF
##6C229C1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#64415E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c229c;
/* rgb */ color: rgb(108, 34, 156);
/* oklch */ color: oklch(43.1% 0.186 307.8);
Tailwind
colors: {
  custom: {
    50: '#9b66ba',
    500: '#6c229c',
    950: '#000000',
  },
}
SCSS
$custom: #6c229c;
$custom-light: #9b66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#6c229c",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 276.393,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43057,
    "c": 0.18586,
    "h": 307.8
  },
  "luminance": 0.06733
}

Semantic roles & 50–950 ramp

primary
#6C229C
secondary
#82C05A
accent
#E74182
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6C229C

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

Preview Lab → · Contrast checker → · Palette generator →

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