#6D228D#6D228D

#6D228D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.172 H 313.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#6D228D
RGBrgb(109, 34, 141)
HSLhsl(282, 61%, 34%)
HSVhsv(282, 76%, 55%)
CMYKcmyk(22.7%, 75.9%, 0%, 44.7%)
CIE-LABlab(30.20, 49.47, -44.10)
CIE-LCHlch(30.20, 66.27, 318.29°)
OKLaboklab(42.03% 0.118 -0.1246)
OKLCHoklch(42.03% 0.172 313.5)
XYZxyz(11.6856, 6.3187, 25.7982)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D228D #428D22
analogous
#38228D #6D228D #8D2278
triadic
#6D228D #8D6D22 #228D6D
tetradic
#6D228D #8D3822 #428D22 #22788D
square
#6D228D #8D3822 #428D22 #22788D
split-complementary
#6D228D #788D22 #228D38
monochromatic
#210A2A #47165C #6D228D #932EBE #AF54D6

Accessibility & contrast

On white

9.28
#6D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D228D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D228D#FFFFFF#000000##FFFFFF
##6D228D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#18498B
Tritanopia (blue-blind)
#6A3A56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d228d;
/* rgb */ color: rgb(109, 34, 141);
/* oklch */ color: oklch(42.0% 0.172 313.5);
Tailwind
colors: {
  custom: {
    50: '#9b65af',
    500: '#6d228d',
    950: '#000000',
  },
}
SCSS
$custom: #6d228d;
$custom-light: #9b65af;
$custom-dark: #000000;
JSON
{
  "hex": "#6d228d",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 282.056,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42033,
    "c": 0.17161,
    "h": 313.5
  },
  "luminance": 0.06318
}

Semantic roles & 50–950 ramp

primary
#6D228D
secondary
#70B951
accent
#E44474
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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