#6226AE#6226AE

#6226AE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.198 H 297.4°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#6226AE
RGBrgb(98, 38, 174)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 68%)
CMYKcmyk(43.7%, 78.2%, 0%, 31.8%)
CIE-LABlab(31.89, 53.58, -61.48)
CIE-LCHlch(31.89, 81.55, 311.07°)
OKLaboklab(43.73% 0.0911 -0.1761)
OKLCHoklch(43.73% 0.198 297.4)
XYZxyz(13.3681, 7.0386, 40.6905)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226AE #72AE26
analogous
#262EAE #6226AE #A626AE
triadic
#6226AE #AE6226 #26AE62
tetradic
#6226AE #AE262E #72AE26 #26AEA6
square
#6226AE #AE262E #72AE26 #26AEA6
split-complementary
#6226AE #AEA626 #2EAE26
monochromatic
#29104A #461B7C #6226AE #803DD5 #A16FE0

Accessibility & contrast

On white

8.72
#6226AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6226AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226AE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226AE#FFFFFF#000000##FFFFFF
##6226AE1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#4E4B69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6226ae;
/* rgb */ color: rgb(98, 38, 174);
/* oklch */ color: oklch(43.7% 0.198 297.4);
Tailwind
colors: {
  custom: {
    50: '#9668c7',
    500: '#6226ae',
    950: '#000000',
  },
}
SCSS
$custom: #6226ae;
$custom-light: #9668c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6226ae",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 174
  },
  "hsl": {
    "h": 266.471,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43725,
    "c": 0.19822,
    "h": 297.4
  },
  "luminance": 0.07039
}

Semantic roles & 50–950 ramp

primary
#6226AE
secondary
#9DC66A
accent
#E7419E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6226AE

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

Preview Lab → · Contrast checker → · Palette generator →

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