#6226A6#6226A6

#6226A6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.190 H 299.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#6226A6
RGBrgb(98, 38, 166)
HSLhsl(268, 63%, 40%)
HSVhsv(268, 77%, 65%)
CMYKcmyk(41%, 77.1%, 0%, 34.9%)
CIE-LABlab(31.20, 51.58, -57.82)
CIE-LCHlch(31.20, 77.48, 311.74°)
OKLaboklab(43.02% 0.0933 -0.1653)
OKLCHoklch(43.02% 0.19 299.4)
XYZxyz(12.6113, 6.7359, 36.7047)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226A6 #6AA626
analogous
#262AA6 #6226A6 #A226A6
triadic
#6226A6 #A66226 #26A662
tetradic
#6226A6 #A6262A #6AA626 #26A6A2
square
#6226A6 #A6262A #6AA626 #26A6A2
split-complementary
#6226A6 #A6A226 #2AA626
monochromatic
#270F42 #451B74 #6226A6 #8038D1 #A06ADD

Accessibility & contrast

On white

8.95
#6226A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6226A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226A6
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226A6#FFFFFF#000000##FFFFFF
##6226A61.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#524865
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6226a6;
/* rgb */ color: rgb(98, 38, 166);
/* oklch */ color: oklch(43.0% 0.190 299.4);
Tailwind
colors: {
  custom: {
    50: '#9567c1',
    500: '#6226a6',
    950: '#000000',
  },
}
SCSS
$custom: #6226a6;
$custom-light: #9567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6226a6",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 268.125,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.43023,
    "c": 0.1898,
    "h": 299.4
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#6226A6
secondary
#97C365
accent
#E64299
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6226A6

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

Preview Lab → · Contrast checker → · Palette generator →

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