#6D228A#6D228A

#6D228A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.169 H 314.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#6D228A
RGBrgb(109, 34, 138)
HSLhsl(283, 60%, 34%)
HSVhsv(283, 75%, 54%)
CMYKcmyk(21%, 75.4%, 0%, 45.9%)
CIE-LABlab(29.99, 48.83, -42.59)
CIE-LCHlch(29.99, 64.79, 318.91°)
OKLaboklab(41.81% 0.1185 -0.1201)
OKLCHoklch(41.81% 0.169 314.6)
XYZxyz(11.4654, 6.2306, 24.6385)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D228A #3F8A22
analogous
#39228A #6D228A #8A2273
triadic
#6D228A #8A6D22 #228A6D
tetradic
#6D228A #8A3922 #3F8A22 #22738A
square
#6D228A #8A3922 #3F8A22 #22738A
split-complementary
#6D228A #738A22 #228A39
monochromatic
#1F0A28 #461659 #6D228A #942EBB #B052D4

Accessibility & contrast

On white

9.35
#6D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D228A
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D228A#FFFFFF#000000##FFFFFF
##6D228A1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#1D4888
Tritanopia (blue-blind)
#6A3954
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d228a;
/* rgb */ color: rgb(109, 34, 138);
/* oklch */ color: oklch(41.8% 0.169 314.6);
Tailwind
colors: {
  custom: {
    50: '#9b65ad',
    500: '#6d228a',
    950: '#000000',
  },
}
SCSS
$custom: #6d228a;
$custom-light: #9b65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6d228a",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 283.269,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.16872,
    "h": 314.6
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#6D228A
secondary
#6DB850
accent
#E44471
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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