#6A227D#6A227D

#6A227D is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.5% C 0.155 H 318.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#6A227D
RGBrgb(106, 34, 125)
HSLhsl(287, 57%, 31%)
HSVhsv(287, 73%, 49%)
CMYKcmyk(15.2%, 72.8%, 0%, 51%)
CIE-LABlab(28.61, 45.43, -36.69)
CIE-LCHlch(28.61, 58.40, 321.08°)
OKLaboklab(40.45% 0.1159 -0.1029)
OKLCHoklch(40.45% 0.155 318.4)
XYZxyz(10.2170, 5.6894, 19.9580)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A227D #357D22
analogous
#3C227D #6A227D #7D2262
triadic
#6A227D #7D6A22 #227D6A
tetradic
#6A227D #7D3C22 #357D22 #22627D
square
#6A227D #7D3C22 #357D22 #22627D
split-complementary
#6A227D #627D22 #227D3C
monochromatic
#18081D #41154D #6A227D #932FAD #B34BCE

Accessibility & contrast

On white

9.82
#6A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6A227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A227D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A227D#FFFFFF#000000##FFFFFF
##6A227D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#27467B
Tritanopia (blue-blind)
#6A344D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a227d;
/* rgb */ color: rgb(106, 34, 125);
/* oklch */ color: oklch(40.5% 0.155 318.4);
Tailwind
colors: {
  custom: {
    50: '#9864a3',
    500: '#6a227d',
    950: '#000000',
  },
}
SCSS
$custom: #6a227d;
$custom-light: #9864a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a227d",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 287.473,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.15501,
    "h": 318.4
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#6A227D
secondary
#60B04B
accent
#E04767
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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