#6226AC#6226AC

#6226AC is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.196 H 297.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#6226AC
RGBrgb(98, 38, 172)
HSLhsl(267, 64%, 41%)
HSVhsv(267, 78%, 67%)
CMYKcmyk(43%, 77.9%, 0%, 32.5%)
CIE-LABlab(31.72, 53.08, -60.57)
CIE-LCHlch(31.72, 80.54, 311.23°)
OKLaboklab(43.55% 0.0917 -0.1734)
OKLCHoklch(43.55% 0.196 297.9)
XYZxyz(13.1746, 6.9612, 39.6713)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226AC #70AC26
analogous
#262DAC #6226AC #A526AC
triadic
#6226AC #AC6226 #26AC62
tetradic
#6226AC #AC262D #70AC26 #26ACA5
square
#6226AC #AC262D #70AC26 #26ACA5
split-complementary
#6226AC #ACA526 #2DAC26
monochromatic
#291048 #451B7A #6226AC #803BD4 #A06EDF

Accessibility & contrast

On white

8.78
#6226AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6226AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226AC
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226AC#FFFFFF#000000##FFFFFF
##6226AC1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#4F4A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6226ac;
/* rgb */ color: rgb(98, 38, 172);
/* oklch */ color: oklch(43.5% 0.196 297.9);
Tailwind
colors: {
  custom: {
    50: '#9667c6',
    500: '#6226ac',
    950: '#000000',
  },
}
SCSS
$custom: #6226ac;
$custom-light: #9667c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6226ac",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 172
  },
  "hsl": {
    "h": 266.866,
    "s": 63.81,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43548,
    "c": 0.19612,
    "h": 297.9
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#6226AC
secondary
#9CC568
accent
#E7419D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6226AC

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

Preview Lab → · Contrast checker → · Palette generator →

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