#6D227A#6D227A

#6D227A is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.154 H 321.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#6D227A
RGBrgb(109, 34, 122)
HSLhsl(291, 56%, 31%)
HSVhsv(291, 72%, 48%)
CMYKcmyk(10.7%, 72.1%, 0%, 52.2%)
CIE-LABlab(28.90, 45.53, -34.30)
CIE-LCHlch(28.90, 57.00, 323.00°)
OKLaboklab(40.7% 0.1199 -0.0958)
OKLCHoklch(40.7% 0.154 321.4)
XYZxyz(10.3912, 5.8010, 18.9809)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D227A #2F7A22
analogous
#41227A #6D227A #7A225B
triadic
#6D227A #7A6D22 #227A6D
tetradic
#6D227A #7A4122 #2F7A22 #225B7A
square
#6D227A #7A4122 #2F7A22 #225B7A
split-complementary
#6D227A #5B7A22 #227A41
monochromatic
#17071A #42154A #6D227A #982FAA #B94ACD

Accessibility & contrast

On white

9.72
#6D227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6D227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D227A
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D227A#FFFFFF#000000##FFFFFF
##6D227A1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#2C4778
Tritanopia (blue-blind)
#6E324B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d227a;
/* rgb */ color: rgb(109, 34, 122);
/* oklch */ color: oklch(40.7% 0.154 321.4);
Tailwind
colors: {
  custom: {
    50: '#9a64a1',
    500: '#6d227a',
    950: '#000000',
  },
}
SCSS
$custom: #6d227a;
$custom-light: #9a64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d227a",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 291.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40695,
    "c": 0.15353,
    "h": 321.4
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#6D227A
secondary
#59AD4B
accent
#E0485F
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060F
muted
#7E7A7E

Preview Lab

Preview with #6D227A

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

Preview Lab → · Contrast checker → · Palette generator →

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