#6C227D#6C227D

#6C227D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.156 H 319.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#6C227D
RGBrgb(108, 34, 125)
HSLhsl(289, 57%, 31%)
HSVhsv(289, 73%, 49%)
CMYKcmyk(13.6%, 72.8%, 0%, 51%)
CIE-LABlab(28.94, 45.90, -36.15)
CIE-LCHlch(28.94, 58.43, 321.77°)
OKLaboklab(40.75% 0.1185 -0.1013)
OKLCHoklch(40.75% 0.156 319.5)
XYZxyz(10.4576, 5.8134, 19.9693)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C227D #337D22
analogous
#3E227D #6C227D #7D2260
triadic
#6C227D #7D6C22 #227D6C
tetradic
#6C227D #7D3E22 #337D22 #22607D
square
#6C227D #7D3E22 #337D22 #22607D
split-complementary
#6C227D #607D22 #227D3E
monochromatic
#19081D #42154D #6C227D #962FAD #B64BCE

Accessibility & contrast

On white

9.71
#6C227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6C227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C227D
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C227D#FFFFFF#000000##FFFFFF
##6C227D1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#29477B
Tritanopia (blue-blind)
#6C334D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c227d;
/* rgb */ color: rgb(108, 34, 125);
/* oklch */ color: oklch(40.7% 0.156 319.5);
Tailwind
colors: {
  custom: {
    50: '#9964a3',
    500: '#6c227d',
    950: '#000000',
  },
}
SCSS
$custom: #6c227d;
$custom-light: #9964a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c227d",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 288.791,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40747,
    "c": 0.1559,
    "h": 319.5
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#6C227D
secondary
#5EB04B
accent
#E04764
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C227D

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

Preview Lab → · Contrast checker → · Palette generator →

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