#6C227E#6C227E

#6C227E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.157 H 319.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#6C227E
RGBrgb(108, 34, 126)
HSLhsl(288, 58%, 31%)
HSVhsv(288, 73%, 49%)
CMYKcmyk(14.3%, 73%, 0%, 50.6%)
CIE-LABlab(29.00, 46.10, -36.68)
CIE-LCHlch(29.00, 58.91, 321.49°)
OKLaboklab(40.82% 0.1184 -0.1028)
OKLCHoklch(40.82% 0.157 319)
XYZxyz(10.5218, 5.8391, 20.3074)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C227E #347E22
analogous
#3E227E #6C227E #7E2262
triadic
#6C227E #7E6C22 #227E6C
tetradic
#6C227E #7E3E22 #347E22 #22627E
square
#6C227E #7E3E22 #347E22 #22627E
split-complementary
#6C227E #627E22 #227E3E
monochromatic
#19081E #43154E #6C227E #952FAE #B54CCF

Accessibility & contrast

On white

9.69
#6C227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6C227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C227E
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C227E#FFFFFF#000000##FFFFFF
##6C227E1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#28477C
Tritanopia (blue-blind)
#6C344D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c227e;
/* rgb */ color: rgb(108, 34, 126);
/* oklch */ color: oklch(40.8% 0.157 319.0);
Tailwind
colors: {
  custom: {
    50: '#9964a4',
    500: '#6c227e',
    950: '#000000',
  },
}
SCSS
$custom: #6c227e;
$custom-light: #9964a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c227e",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 288.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40816,
    "c": 0.15684,
    "h": 319
  },
  "luminance": 0.05839
}

Semantic roles & 50–950 ramp

primary
#6C227E
secondary
#5FB14B
accent
#E14765
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C227E

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

Preview Lab → · Contrast checker → · Palette generator →

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