#6D228E#6D228E

#6D228E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.173 H 313.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#6D228E
RGBrgb(109, 34, 142)
HSLhsl(282, 61%, 35%)
HSVhsv(282, 76%, 56%)
CMYKcmyk(23.2%, 76.1%, 0%, 44.3%)
CIE-LABlab(30.28, 49.69, -44.60)
CIE-LCHlch(30.28, 66.77, 318.09°)
OKLaboklab(42.11% 0.1179 -0.126)
OKLCHoklch(42.11% 0.173 313.1)
XYZxyz(11.7603, 6.3486, 26.1918)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D228E #438E22
analogous
#37228E #6D228E #8E2279
triadic
#6D228E #8E6D22 #228E6D
tetradic
#6D228E #8E3722 #438E22 #22798E
square
#6D228E #8E3722 #438E22 #22798E
split-complementary
#6D228E #798E22 #228E37
monochromatic
#210A2B #47165D #6D228E #932EBF #AE54D6

Accessibility & contrast

On white

9.25
#6D228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6D228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D228E
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D228E#FFFFFF#000000##FFFFFF
##6D228E1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#693A56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d228e;
/* rgb */ color: rgb(109, 34, 142);
/* oklch */ color: oklch(42.1% 0.173 313.1);
Tailwind
colors: {
  custom: {
    50: '#9b65b0',
    500: '#6d228e',
    950: '#000000',
  },
}
SCSS
$custom: #6d228e;
$custom-light: #9b65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d228e",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 281.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42108,
    "c": 0.17257,
    "h": 313.1
  },
  "luminance": 0.06348
}

Semantic roles & 50–950 ramp

primary
#6D228E
secondary
#72BA52
accent
#E44375
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0610
muted
#7E7A7F

Preview Lab

Preview with #6D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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