#6228AB#6228AB

#6228AB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.193 H 297.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#6228AB
RGBrgb(98, 40, 171)
HSLhsl(267, 62%, 41%)
HSVhsv(267, 77%, 67%)
CMYKcmyk(42.7%, 76.6%, 0%, 32.9%)
CIE-LABlab(31.93, 51.97, -59.63)
CIE-LCHlch(31.93, 79.10, 311.08°)
OKLaboklab(43.67% 0.0903 -0.1706)
OKLCHoklch(43.67% 0.193 297.9)
XYZxyz(13.1446, 7.0543, 39.1893)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228AB #71AB28
analogous
#2830AB #6228AB #A428AB
triadic
#6228AB #AB6228 #28AB62
tetradic
#6228AB #AB2830 #71AB28 #28ABA4
square
#6228AB #AB2830 #71AB28 #28ABA4
split-complementary
#6228AB #ABA428 #30AB28
monochromatic
#291148 #461C79 #6228AB #803ED2 #A070DE

Accessibility & contrast

On white

8.71
#6228AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6228AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6228AB#FFFFFF#000000##FFFFFF
##6228AB1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#4F4B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6228ab;
/* rgb */ color: rgb(98, 40, 171);
/* oklch */ color: oklch(43.7% 0.193 297.9);
Tailwind
colors: {
  custom: {
    50: '#9668c5',
    500: '#6228ab',
    950: '#000000',
  },
}
SCSS
$custom: #6228ab;
$custom-light: #9668c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6228ab",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 266.565,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43669,
    "c": 0.19302,
    "h": 297.9
  },
  "luminance": 0.07055
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6228AB

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

Preview Lab → · Contrast checker → · Palette generator →

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