#6227AA#6227AA

#6227AA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.193 H 298.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6227AA
RGBrgb(98, 39, 170)
HSLhsl(267, 63%, 41%)
HSVhsv(267, 77%, 67%)
CMYKcmyk(42.4%, 77.1%, 0%, 33.3%)
CIE-LABlab(31.69, 52.15, -59.42)
CIE-LCHlch(31.69, 79.06, 311.28°)
OKLaboklab(43.48% 0.0914 -0.17)
OKLCHoklch(43.48% 0.193 298.3)
XYZxyz(13.0163, 6.9498, 38.6781)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227AA #6FAA27
analogous
#272DAA #6227AA #A327AA
triadic
#6227AA #AA6227 #27AA62
tetradic
#6227AA #AA272D #6FAA27 #27AAA3
square
#6227AA #AA272D #6FAA27 #27AAA3
split-complementary
#6227AA #AAA327 #2DAA27
monochromatic
#291046 #451C78 #6227AA #803CD2 #A06EDE

Accessibility & contrast

On white

8.79
#6227AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6227AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227AA
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227AA#FFFFFF#000000##FFFFFF
##6227AA1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#504A67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6227aa;
/* rgb */ color: rgb(98, 39, 170);
/* oklch */ color: oklch(43.5% 0.193 298.3);
Tailwind
colors: {
  custom: {
    50: '#9668c4',
    500: '#6227aa',
    950: '#000000',
  },
}
SCSS
$custom: #6227aa;
$custom-light: #9668c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6227aa",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 267.023,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43476,
    "c": 0.19299,
    "h": 298.3
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#6227AA
secondary
#9BC469
accent
#E6429C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6227AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6227AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva