#6228A6#6228A6

#6228A6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.188 H 299.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#6228A6
RGBrgb(98, 40, 166)
HSLhsl(268, 61%, 40%)
HSVhsv(268, 76%, 65%)
CMYKcmyk(41%, 75.9%, 0%, 34.9%)
CIE-LABlab(31.50, 50.71, -57.32)
CIE-LCHlch(31.50, 76.53, 311.50°)
OKLaboklab(43.24% 0.0915 -0.1638)
OKLCHoklch(43.24% 0.188 299.2)
XYZxyz(12.6770, 6.8673, 36.7266)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228A6 #6CA628
analogous
#282DA6 #6228A6 #A128A6
triadic
#6228A6 #A66228 #28A662
tetradic
#6228A6 #A6282D #6CA628 #28A6A1
square
#6228A6 #A6282D #6CA628 #28A6A1
split-complementary
#6228A6 #A6A128 #2DA628
monochromatic
#281043 #451C75 #6228A6 #803BD0 #A06DDC

Accessibility & contrast

On white

8.85
#6228A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6228A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6228A6#FFFFFF#000000##FFFFFF
##6228A61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#524965
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6228a6;
/* rgb */ color: rgb(98, 40, 166);
/* oklch */ color: oklch(43.2% 0.188 299.2);
Tailwind
colors: {
  custom: {
    50: '#9568c1',
    500: '#6228a6',
    950: '#000000',
  },
}
SCSS
$custom: #6228a6;
$custom-light: #9568c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6228a6",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 267.619,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43237,
    "c": 0.18767,
    "h": 299.2
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#6228A6
secondary
#99C267
accent
#E4449A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6228A6

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

Preview Lab → · Contrast checker → · Palette generator →

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