#6223AA#6223AA

#6223AA is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.197 H 298.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#6223AA
RGBrgb(98, 35, 170)
HSLhsl(268, 66%, 40%)
HSVhsv(268, 79%, 67%)
CMYKcmyk(42.4%, 79.4%, 0%, 33.3%)
CIE-LABlab(31.12, 53.81, -60.36)
CIE-LCHlch(31.12, 80.87, 311.72°)
OKLaboklab(43.07% 0.0946 -0.1727)
OKLCHoklch(43.07% 0.197 298.7)
XYZxyz(12.8919, 6.7008, 38.6366)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6223AA #6BAA23
analogous
#2327AA #6223AA #A623AA
triadic
#6223AA #AA6223 #23AA62
tetradic
#6223AA #AA2327 #6BAA23 #23AAA6
square
#6223AA #AA2327 #6BAA23 #23AAA6
split-complementary
#6223AA #AAA623 #27AA23
monochromatic
#270E44 #451977 #6223AA #8035D5 #A068E0

Accessibility & contrast

On white

8.97
#6223AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6223AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6223AA
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6223AA#FFFFFF#000000##FFFFFF
##6223AA1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#504867
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6223aa;
/* rgb */ color: rgb(98, 35, 170);
/* oklch */ color: oklch(43.1% 0.197 298.7);
Tailwind
colors: {
  custom: {
    50: '#9666c4',
    500: '#6223aa',
    950: '#000000',
  },
}
SCSS
$custom: #6223aa;
$custom-light: #9666c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6223aa",
  "rgb": {
    "r": 98,
    "g": 35,
    "b": 170
  },
  "hsl": {
    "h": 268,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43073,
    "c": 0.19695,
    "h": 298.7
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#6223AA
secondary
#98C663
accent
#E93F9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6223AA

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

Preview Lab → · Contrast checker → · Palette generator →

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