#6C229F#6C229F

#6C229F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.3% C 0.189 H 306.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#6C229F
RGBrgb(108, 34, 159)
HSLhsl(276, 65%, 38%)
HSVhsv(276, 79%, 62%)
CMYKcmyk(32.1%, 78.6%, 0%, 37.6%)
CIE-LABlab(31.43, 53.26, -53.15)
CIE-LCHlch(31.43, 75.24, 315.06°)
OKLaboklab(43.3% 0.1131 -0.1512)
OKLCHoklch(43.3% 0.189 306.8)
XYZxyz(13.0130, 6.8356, 33.4280)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C229F #559F22
analogous
#2D229F #6C229F #9F2293
triadic
#6C229F #9F6C22 #229F6C
tetradic
#6C229F #9F2D22 #559F22 #22939F
square
#6C229F #9F2D22 #559F22 #22939F
split-complementary
#6C229F #939F22 #229F2D
monochromatic
#280C3A #4A176D #6C229F #8E2DD1 #A95FDD

Accessibility & contrast

On white

8.87
#6C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C229F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C229F#FFFFFF#000000##FFFFFF
##6C229F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#634260
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6c229f;
/* rgb */ color: rgb(108, 34, 159);
/* oklch */ color: oklch(43.3% 0.189 306.8);
Tailwind
colors: {
  custom: {
    50: '#9b66bc',
    500: '#6c229f',
    950: '#000000',
  },
}
SCSS
$custom: #6c229f;
$custom-light: #9b66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c229f",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 275.52,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43299,
    "c": 0.18879,
    "h": 306.8
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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