#6A227E#6A227E

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

Color values

HEX#6A227E
RGBrgb(106, 34, 126)
HSLhsl(287, 58%, 31%)
HSVhsv(287, 73%, 49%)
CMYKcmyk(15.9%, 73%, 0%, 50.6%)
CIE-LABlab(28.68, 45.64, -37.21)
CIE-LCHlch(28.68, 58.89, 320.81°)
OKLaboklab(40.52% 0.1158 -0.1044)
OKLCHoklch(40.52% 0.156 318)
XYZxyz(10.2813, 5.7150, 20.2962)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A227E #367E22
analogous
#3C227E #6A227E #7E2264
triadic
#6A227E #7E6A22 #227E6A
tetradic
#6A227E #7E3C22 #367E22 #22647E
square
#6A227E #7E3C22 #367E22 #22647E
split-complementary
#6A227E #647E22 #227E3C
monochromatic
#19081E #41154E #6A227E #932FAE #B24CCF

Accessibility & contrast

On white

9.80
#6A227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A227E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A227E#FFFFFF#000000##FFFFFF
##6A227E1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#26467C
Tritanopia (blue-blind)
#69344D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a227e;
/* rgb */ color: rgb(106, 34, 126);
/* oklch */ color: oklch(40.5% 0.156 318.0);
Tailwind
colors: {
  custom: {
    50: '#9864a4',
    500: '#6a227e',
    950: '#000000',
  },
}
SCSS
$custom: #6a227e;
$custom-light: #9864a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a227e",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 286.957,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40522,
    "c": 0.15598,
    "h": 318
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#6A227E
secondary
#61B14B
accent
#E14768
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A227E

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

Preview Lab → · Contrast checker → · Palette generator →

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