#6A228B#6A228B

#6A228B is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.169 H 312.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#6A228B
RGBrgb(106, 34, 139)
HSLhsl(281, 61%, 34%)
HSVhsv(281, 76%, 55%)
CMYKcmyk(23.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(29.59, 48.42, -43.86)
CIE-LCHlch(29.59, 65.33, 317.83°)
OKLaboklab(41.46% 0.1143 -0.124)
OKLCHoklch(41.46% 0.169 312.7)
XYZxyz(11.1752, 6.0726, 25.0045)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A228B #438B22
analogous
#36228B #6A228B #8B2278
triadic
#6A228B #8B6A22 #228B6A
tetradic
#6A228B #8B3622 #438B22 #22788B
square
#6A228B #8B3622 #438B22 #22788B
split-complementary
#6A228B #788B22 #228B36
monochromatic
#1F0A29 #45165A #6A228B #902EBC #AC53D5

Accessibility & contrast

On white

9.48
#6A228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#6A228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A228B
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A228B#FFFFFF#000000##FFFFFF
##6A228B1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#164789
Tritanopia (blue-blind)
#663A55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a228b;
/* rgb */ color: rgb(106, 34, 139);
/* oklch */ color: oklch(41.5% 0.169 312.7);
Tailwind
colors: {
  custom: {
    50: '#9865ae',
    500: '#6a228b',
    950: '#000000',
  },
}
SCSS
$custom: #6a228b;
$custom-light: #9865ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a228b",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 281.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41462,
    "c": 0.16861,
    "h": 312.7
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#6A228B
secondary
#71B850
accent
#E44476
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A228B

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

Preview Lab → · Contrast checker → · Palette generator →

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