#6C229A#6C229A

#6C229A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.184 H 308.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#6C229A
RGBrgb(108, 34, 154)
HSLhsl(277, 64%, 37%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(29.9%, 77.9%, 0%, 39.6%)
CIE-LABlab(31.03, 52.14, -50.75)
CIE-LCHlch(31.03, 72.76, 315.77°)
OKLaboklab(42.9% 0.1142 -0.1441)
OKLCHoklch(42.9% 0.184 308.4)
XYZxyz(12.5879, 6.6655, 31.1890)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C229A #509A22
analogous
#30229A #6C229A #9A228C
triadic
#6C229A #9A6C22 #229A6C
tetradic
#6C229A #9A3022 #509A22 #228C9A
square
#6C229A #9A3022 #509A22 #228C9A
split-complementary
#6C229A #8C9A22 #229A30
monochromatic
#260C36 #491768 #6C229A #8F2DCC #AA5BDB

Accessibility & contrast

On white

9.00
#6C229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6C229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C229A
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C229A#FFFFFF#000000##FFFFFF
##6C229A1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#65405D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c229a;
/* rgb */ color: rgb(108, 34, 154);
/* oklch */ color: oklch(42.9% 0.184 308.4);
Tailwind
colors: {
  custom: {
    50: '#9b66b9',
    500: '#6c229a',
    950: '#000000',
  },
}
SCSS
$custom: #6c229a;
$custom-light: #9b66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c229a",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 277,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42897,
    "c": 0.18391,
    "h": 308.4
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#6C229A
secondary
#80BF58
accent
#E74181
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C229A

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

Preview Lab → · Contrast checker → · Palette generator →

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