#6C229D#6C229D

#6C229D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.187 H 307.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#6C229D
RGBrgb(108, 34, 157)
HSLhsl(276, 64%, 37%)
HSVhsv(276, 78%, 62%)
CMYKcmyk(31.2%, 78.3%, 0%, 38.4%)
CIE-LABlab(31.27, 52.81, -52.19)
CIE-LCHlch(31.27, 74.25, 315.34°)
OKLaboklab(43.14% 0.1136 -0.1484)
OKLCHoklch(43.14% 0.187 307.4)
XYZxyz(12.8409, 6.7667, 32.5214)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C229D #539D22
analogous
#2F229D #6C229D #9D2290
triadic
#6C229D #9D6C22 #229D6C
tetradic
#6C229D #9D2F22 #539D22 #22909D
square
#6C229D #9D2F22 #539D22 #22909D
split-complementary
#6C229D #909D22 #229D2F
monochromatic
#270C38 #49176B #6C229D #8F2DCF #AA5DDC

Accessibility & contrast

On white

8.92
#6C229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C229D
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C229D#FFFFFF#000000##FFFFFF
##6C229D1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.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: #6c229d;
/* rgb */ color: rgb(108, 34, 157);
/* oklch */ color: oklch(43.1% 0.187 307.4);
Tailwind
colors: {
  custom: {
    50: '#9b66bb',
    500: '#6c229d',
    950: '#000000',
  },
}
SCSS
$custom: #6c229d;
$custom-light: #9b66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c229d",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 276.098,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43137,
    "c": 0.18684,
    "h": 307.4
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#6C229D
secondary
#83C15A
accent
#E74083
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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