#6D227E#6D227E

#6D227E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.157 H 319.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#6D227E
RGBrgb(109, 34, 126)
HSLhsl(289, 58%, 31%)
HSVhsv(289, 73%, 49%)
CMYKcmyk(13.5%, 73%, 0%, 50.6%)
CIE-LABlab(29.16, 46.33, -36.41)
CIE-LCHlch(29.16, 58.93, 321.84°)
OKLaboklab(40.96% 0.1197 -0.102)
OKLCHoklch(40.96% 0.157 319.6)
XYZxyz(10.6441, 5.9021, 20.3132)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D227E #337E22
analogous
#3F227E #6D227E #7E2261
triadic
#6D227E #7E6D22 #227E6D
tetradic
#6D227E #7E3F22 #337E22 #22617E
square
#6D227E #7E3F22 #337E22 #22617E
split-complementary
#6D227E #617E22 #227E3F
monochromatic
#1A081E #43154E #6D227E #972FAE #B64CCF

Accessibility & contrast

On white

9.63
#6D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6D227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D227E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D227E#FFFFFF#000000##FFFFFF
##6D227E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#6D334D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6d227e;
/* rgb */ color: rgb(109, 34, 126);
/* oklch */ color: oklch(41.0% 0.157 319.6);
Tailwind
colors: {
  custom: {
    50: '#9a65a4',
    500: '#6d227e',
    950: '#000000',
  },
}
SCSS
$custom: #6d227e;
$custom-light: #9a65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6d227e",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 288.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40964,
    "c": 0.15729,
    "h": 319.6
  },
  "luminance": 0.05902
}

Semantic roles & 50–950 ramp

primary
#6D227E
secondary
#5EB14B
accent
#E14763
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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