#6A228D#6A228D

#6A228D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.171 H 311.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#6A228D
RGBrgb(106, 34, 141)
HSLhsl(280, 61%, 34%)
HSVhsv(280, 76%, 55%)
CMYKcmyk(24.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(29.74, 48.86, -44.87)
CIE-LCHlch(29.74, 66.33, 317.44°)
OKLaboklab(41.61% 0.114 -0.1269)
OKLCHoklch(41.61% 0.171 311.9)
XYZxyz(11.3227, 6.1316, 25.7812)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A228D #458D22
analogous
#35228D #6A228D #8D227B
triadic
#6A228D #8D6A22 #228D6A
tetradic
#6A228D #8D3522 #458D22 #227B8D
square
#6A228D #8D3522 #458D22 #227B8D
split-complementary
#6A228D #7B8D22 #228D35
monochromatic
#200A2A #45165C #6A228D #8F2EBE #AB54D6

Accessibility & contrast

On white

9.43
#6A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6A228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A228D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A228D#FFFFFF#000000##FFFFFF
##6A228D1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#12478B
Tritanopia (blue-blind)
#663A56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a228d;
/* rgb */ color: rgb(106, 34, 141);
/* oklch */ color: oklch(41.6% 0.171 311.9);
Tailwind
colors: {
  custom: {
    50: '#9965af',
    500: '#6a228d',
    950: '#000000',
  },
}
SCSS
$custom: #6a228d;
$custom-light: #9965af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a228d",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 280.374,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41613,
    "c": 0.17057,
    "h": 311.9
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#6A228D
secondary
#73B951
accent
#E44478
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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