#6D227F#6D227F

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

Color values

HEX#6D227F
RGBrgb(109, 34, 127)
HSLhsl(288, 58%, 32%)
HSVhsv(288, 73%, 50%)
CMYKcmyk(14.2%, 73.2%, 0%, 50.2%)
CIE-LABlab(29.23, 46.54, -36.93)
CIE-LCHlch(29.23, 59.41, 321.56°)
OKLaboklab(41.03% 0.1197 -0.1035)
OKLCHoklch(41.03% 0.158 319.1)
XYZxyz(10.7090, 5.9281, 20.6547)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D227F #347F22
analogous
#3F227F #6D227F #7F2263
triadic
#6D227F #7F6D22 #227F6D
tetradic
#6D227F #7F3F22 #347F22 #22637F
square
#6D227F #7F3F22 #347F22 #22637F
split-complementary
#6D227F #637F22 #227F3F
monochromatic
#1A081E #44154F #6D227F #962FAF #B64CCF

Accessibility & contrast

On white

9.61
#6D227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#6D227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D227F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D227F#FFFFFF#000000##FFFFFF
##6D227F1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#28477D
Tritanopia (blue-blind)
#6D344E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6d227f;
/* rgb */ color: rgb(109, 34, 127);
/* oklch */ color: oklch(41.0% 0.158 319.1);
Tailwind
colors: {
  custom: {
    50: '#9a65a5',
    500: '#6d227f',
    950: '#000000',
  },
}
SCSS
$custom: #6d227f;
$custom-light: #9a65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d227f",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 288.387,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.15824,
    "h": 319.1
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D227F

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

Preview Lab → · Contrast checker → · Palette generator →

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