#6228AE#6228AE

#6228AE is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.196 H 297.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#6228AE
RGBrgb(98, 40, 174)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 77%, 68%)
CMYKcmyk(43.7%, 77%, 0%, 31.8%)
CIE-LABlab(32.19, 52.73, -61.00)
CIE-LCHlch(32.19, 80.63, 310.84°)
OKLaboklab(43.93% 0.0895 -0.1746)
OKLCHoklch(43.93% 0.196 297.1)
XYZxyz(13.4338, 7.1700, 40.7124)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228AE #74AE28
analogous
#2831AE #6228AE #A528AE
triadic
#6228AE #AE6228 #28AE62
tetradic
#6228AE #AE2831 #74AE28 #28AEA5
square
#6228AE #AE2831 #74AE28 #28AEA5
split-complementary
#6228AE #AEA528 #31AE28
monochromatic
#2A114A #461D7C #6228AE #8040D3 #A172DF

Accessibility & contrast

On white

8.63
#6228AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6228AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228AE
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228AE#FFFFFF#000000##FFFFFF
##6228AE1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#4E4C6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6228ae;
/* rgb */ color: rgb(98, 40, 174);
/* oklch */ color: oklch(43.9% 0.196 297.1);
Tailwind
colors: {
  custom: {
    50: '#9669c7',
    500: '#6228ae',
    950: '#000000',
  },
}
SCSS
$custom: #6228ae;
$custom-light: #9669c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6228ae",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 265.97,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43932,
    "c": 0.19622,
    "h": 297.1
  },
  "luminance": 0.0717
}

Semantic roles & 50–950 ramp

primary
#6228AE
secondary
#9FC66C
accent
#E6429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6228AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6228AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva