#6D228F#6D228F

#6D228F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.174 H 312.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6D228F
RGBrgb(109, 34, 143)
HSLhsl(281, 62%, 35%)
HSVhsv(281, 76%, 56%)
CMYKcmyk(23.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(30.35, 49.90, -45.10)
CIE-LCHlch(30.35, 67.26, 317.90°)
OKLaboklab(42.18% 0.1177 -0.1275)
OKLCHoklch(42.18% 0.174 312.7)
XYZxyz(11.8357, 6.3788, 26.5890)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D228F #448F22
analogous
#36228F #6D228F #8F227B
triadic
#6D228F #8F6D22 #228F6D
tetradic
#6D228F #8F3622 #448F22 #227B8F
square
#6D228F #8F3622 #448F22 #227B8F
split-complementary
#6D228F #7B8F22 #228F36
monochromatic
#220A2C #47165E #6D228F #932EC0 #AE55D7

Accessibility & contrast

On white

9.23
#6D228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6D228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D228F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D228F#FFFFFF#000000##FFFFFF
##6D228F1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#15498D
Tritanopia (blue-blind)
#693B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d228f;
/* rgb */ color: rgb(109, 34, 143);
/* oklch */ color: oklch(42.2% 0.174 312.7);
Tailwind
colors: {
  custom: {
    50: '#9b65b0',
    500: '#6d228f',
    950: '#000000',
  },
}
SCSS
$custom: #6d228f;
$custom-light: #9b65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d228f",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 281.284,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42183,
    "c": 0.17353,
    "h": 312.7
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#6D228F
secondary
#73BA52
accent
#E54376
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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