#6229AB#6229AB

#6229AB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.192 H 297.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#6229AB
RGBrgb(98, 41, 171)
HSLhsl(266, 61%, 42%)
HSVhsv(266, 76%, 67%)
CMYKcmyk(42.7%, 76%, 0%, 32.9%)
CIE-LABlab(32.08, 51.53, -59.37)
CIE-LCHlch(32.08, 78.62, 310.95°)
OKLaboklab(43.78% 0.0894 -0.1699)
OKLCHoklch(43.78% 0.192 297.8)
XYZxyz(13.1787, 7.1226, 39.2006)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6229AB #72AB29
analogous
#2931AB #6229AB #A329AB
triadic
#6229AB #AB6229 #29AB62
tetradic
#6229AB #AB2931 #72AB29 #29ABA3
square
#6229AB #AB2931 #72AB29 #29ABA3
split-complementary
#6229AB #ABA329 #31AB29
monochromatic
#291148 #461D7A #6229AB #8040D1 #A171DD

Accessibility & contrast

On white

8.66
#6229AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6229AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6229AB
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6229AB#FFFFFF#000000##FFFFFF
##6229AB1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6229ab;
/* rgb */ color: rgb(98, 41, 171);
/* oklch */ color: oklch(43.8% 0.192 297.8);
Tailwind
colors: {
  custom: {
    50: '#9669c5',
    500: '#6229ab',
    950: '#000000',
  },
}
SCSS
$custom: #6229ab;
$custom-light: #9669c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6229ab",
  "rgb": {
    "r": 98,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 266.308,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43777,
    "c": 0.19196,
    "h": 297.8
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

primary
#6229AB
secondary
#9DC46C
accent
#E4439E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6229AB

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

Preview Lab → · Contrast checker → · Palette generator →

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