#6D228B#6D228B

#6D228B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.170 H 314.2°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6D228B
RGBrgb(109, 34, 139)
HSLhsl(283, 61%, 34%)
HSVhsv(283, 76%, 55%)
CMYKcmyk(21.6%, 75.5%, 0%, 45.5%)
CIE-LABlab(30.06, 49.04, -43.09)
CIE-LCHlch(30.06, 65.29, 318.70°)
OKLaboklab(41.89% 0.1183 -0.1216)
OKLCHoklch(41.89% 0.17 314.2)
XYZxyz(11.5381, 6.2597, 25.0216)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D228B #408B22
analogous
#39228B #6D228B #8B2275
triadic
#6D228B #8B6D22 #228B6D
tetradic
#6D228B #8B3922 #408B22 #22758B
square
#6D228B #8B3922 #408B22 #22758B
split-complementary
#6D228B #758B22 #228B39
monochromatic
#200A29 #46165A #6D228B #942EBC #B053D5

Accessibility & contrast

On white

9.33
#6D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6D228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D228B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D228B#FFFFFF#000000##FFFFFF
##6D228B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d228b;
/* rgb */ color: rgb(109, 34, 139);
/* oklch */ color: oklch(41.9% 0.170 314.2);
Tailwind
colors: {
  custom: {
    50: '#9b65ad',
    500: '#6d228b',
    950: '#000000',
  },
}
SCSS
$custom: #6d228b;
$custom-light: #9b65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6d228b",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 282.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41885,
    "c": 0.16968,
    "h": 314.2
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#6D228B
secondary
#6EB850
accent
#E44472
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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