#6A228A#6A228A

#6A228A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.168 H 313.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#6A228A
RGBrgb(106, 34, 138)
HSLhsl(282, 60%, 34%)
HSVhsv(282, 75%, 54%)
CMYKcmyk(23.2%, 75.4%, 0%, 45.9%)
CIE-LABlab(29.52, 48.20, -43.36)
CIE-LCHlch(29.52, 64.83, 318.03°)
OKLaboklab(41.39% 0.1145 -0.1225)
OKLCHoklch(41.39% 0.168 313.1)
XYZxyz(11.1025, 6.0435, 24.6215)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A228A #428A22
analogous
#36228A #6A228A #8A2276
triadic
#6A228A #8A6A22 #228A6A
tetradic
#6A228A #8A3622 #428A22 #22768A
square
#6A228A #8A3622 #428A22 #22768A
split-complementary
#6A228A #768A22 #228A36
monochromatic
#1F0A28 #441659 #6A228A #902EBB #AC52D4

Accessibility & contrast

On white

9.51
#6A228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A228A
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A228A#FFFFFF#000000##FFFFFF
##6A228A1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#174788
Tritanopia (blue-blind)
#673954
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a228a;
/* rgb */ color: rgb(106, 34, 138);
/* oklch */ color: oklch(41.4% 0.168 313.1);
Tailwind
colors: {
  custom: {
    50: '#9865ad',
    500: '#6a228a',
    950: '#000000',
  },
}
SCSS
$custom: #6a228a;
$custom-light: #9865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a228a",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 281.538,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41387,
    "c": 0.16765,
    "h": 313.1
  },
  "luminance": 0.06043
}

Semantic roles & 50–950 ramp

primary
#6A228A
secondary
#70B850
accent
#E44475
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A228A

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

Preview Lab → · Contrast checker → · Palette generator →

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