#6C229E#6C229E

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

Color values

HEX#6C229E
RGBrgb(108, 34, 158)
HSLhsl(276, 65%, 38%)
HSVhsv(276, 78%, 62%)
CMYKcmyk(31.6%, 78.5%, 0%, 38%)
CIE-LABlab(31.35, 53.04, -52.67)
CIE-LCHlch(31.35, 74.75, 315.20°)
OKLaboklab(43.22% 0.1133 -0.1498)
OKLCHoklch(43.22% 0.188 307.1)
XYZxyz(12.9266, 6.8010, 32.9729)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C229E #549E22
analogous
#2E229E #6C229E #9E2292
triadic
#6C229E #9E6C22 #229E6C
tetradic
#6C229E #9E2E22 #549E22 #22929E
square
#6C229E #9E2E22 #549E22 #22929E
split-complementary
#6C229E #929E22 #229E2E
monochromatic
#270C39 #4A176C #6C229E #8E2DD0 #A95EDC

Accessibility & contrast

On white

8.90
#6C229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6C229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C229E
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C229E#FFFFFF#000000##FFFFFF
##6C229E1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#63415F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6c229e;
/* rgb */ color: rgb(108, 34, 158);
/* oklch */ color: oklch(43.2% 0.188 307.1);
Tailwind
colors: {
  custom: {
    50: '#9b66bb',
    500: '#6c229e',
    950: '#000000',
  },
}
SCSS
$custom: #6c229e;
$custom-light: #9b66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c229e",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 275.806,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43218,
    "c": 0.18782,
    "h": 307.1
  },
  "luminance": 0.06801
}

Semantic roles & 50–950 ramp

primary
#6C229E
secondary
#84C15B
accent
#E84084
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C229E

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

Preview Lab → · Contrast checker → · Palette generator →

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