#6228AA#6228AA

#6228AA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.192 H 298.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#6228AA
RGBrgb(98, 40, 170)
HSLhsl(267, 62%, 41%)
HSVhsv(267, 76%, 67%)
CMYKcmyk(42.4%, 76.5%, 0%, 33.3%)
CIE-LABlab(31.84, 51.72, -59.17)
CIE-LCHlch(31.84, 78.59, 311.16°)
OKLaboklab(43.58% 0.0905 -0.1693)
OKLCHoklch(43.58% 0.192 298.1)
XYZxyz(13.0496, 7.0163, 38.6892)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228AA #70AA28
analogous
#282FAA #6228AA #A328AA
triadic
#6228AA #AA6228 #28AA62
tetradic
#6228AA #AA282F #70AA28 #28AAA3
square
#6228AA #AA282F #70AA28 #28AAA3
split-complementary
#6228AA #AAA328 #2FAA28
monochromatic
#291147 #451C78 #6228AA #803ED2 #A06FDD

Accessibility & contrast

On white

8.74
#6228AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6228AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6228AA#FFFFFF#000000##FFFFFF
##6228AA1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6228aa;
/* rgb */ color: rgb(98, 40, 170);
/* oklch */ color: oklch(43.6% 0.192 298.1);
Tailwind
colors: {
  custom: {
    50: '#9668c4',
    500: '#6228aa',
    950: '#000000',
  },
}
SCSS
$custom: #6228aa;
$custom-light: #9668c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6228aa",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 266.769,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43582,
    "c": 0.19195,
    "h": 298.1
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#6228AA
secondary
#9CC46A
accent
#E5439D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6228AA

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

Preview Lab → · Contrast checker → · Palette generator →

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