#6D227D#6D227D

#6D227D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.9% C 0.156 H 320.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#6D227D
RGBrgb(109, 34, 125)
HSLhsl(289, 57%, 31%)
HSVhsv(289, 73%, 49%)
CMYKcmyk(12.8%, 72.8%, 0%, 51%)
CIE-LABlab(29.10, 46.13, -35.89)
CIE-LCHlch(29.10, 58.44, 322.12°)
OKLaboklab(40.9% 0.1198 -0.1005)
OKLCHoklch(40.9% 0.156 320)
XYZxyz(10.5799, 5.8765, 19.9750)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D227D #327D22
analogous
#3F227D #6D227D #7D225F
triadic
#6D227D #7D6D22 #227D6D
tetradic
#6D227D #7D3F22 #327D22 #225F7D
square
#6D227D #7D3F22 #327D22 #225F7D
split-complementary
#6D227D #5F7D22 #227D3F
monochromatic
#19081D #43154D #6D227D #972FAD #B74BCE

Accessibility & contrast

On white

9.65
#6D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D227D
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D227D#FFFFFF#000000##FFFFFF
##6D227D1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#2A477B
Tritanopia (blue-blind)
#6D334D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6d227d;
/* rgb */ color: rgb(109, 34, 125);
/* oklch */ color: oklch(40.9% 0.156 320.0);
Tailwind
colors: {
  custom: {
    50: '#9a65a3',
    500: '#6d227d',
    950: '#000000',
  },
}
SCSS
$custom: #6d227d;
$custom-light: #9a65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6d227d",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 289.451,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40896,
    "c": 0.15634,
    "h": 320
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#6D227D
secondary
#5DB04B
accent
#E04762
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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