#6D228C#6D228C

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

Color values

HEX#6D228C
RGBrgb(109, 34, 140)
HSLhsl(282, 61%, 34%)
HSVhsv(282, 76%, 55%)
CMYKcmyk(22.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(30.13, 49.26, -43.60)
CIE-LCHlch(30.13, 65.78, 318.49°)
OKLaboklab(41.96% 0.1182 -0.1231)
OKLCHoklch(41.96% 0.171 313.8)
XYZxyz(11.6115, 6.2891, 25.4081)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D228C #418C22
analogous
#38228C #6D228C #8C2276
triadic
#6D228C #8C6D22 #228C6D
tetradic
#6D228C #8C3822 #418C22 #22768C
square
#6D228C #8C3822 #418C22 #22768C
split-complementary
#6D228C #768C22 #228C38
monochromatic
#200A2A #47165B #6D228C #932EBD #AF53D5

Accessibility & contrast

On white

9.30
#6D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D228C
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D228C#FFFFFF#000000##FFFFFF
##6D228C1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#1A498A
Tritanopia (blue-blind)
#6A3955
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d228c;
/* rgb */ color: rgb(109, 34, 140);
/* oklch */ color: oklch(42.0% 0.171 313.8);
Tailwind
colors: {
  custom: {
    50: '#9b65ae',
    500: '#6d228c',
    950: '#000000',
  },
}
SCSS
$custom: #6d228c;
$custom-light: #9b65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6d228c",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 282.453,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41959,
    "c": 0.17064,
    "h": 313.8
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#6D228C
secondary
#6FB951
accent
#E44473
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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