#6226A8#6226A8

#6226A8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.192 H 298.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#6226A8
RGBrgb(98, 38, 168)
HSLhsl(268, 63%, 40%)
HSVhsv(268, 77%, 66%)
CMYKcmyk(41.7%, 77.4%, 0%, 34.1%)
CIE-LABlab(31.37, 52.08, -58.74)
CIE-LCHlch(31.37, 78.50, 311.56°)
OKLaboklab(43.2% 0.0928 -0.168)
OKLCHoklch(43.2% 0.192 298.9)
XYZxyz(12.7962, 6.8099, 37.6785)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226A8 #6CA826
analogous
#262BA8 #6226A8 #A326A8
triadic
#6226A8 #A86226 #26A862
tetradic
#6226A8 #A8262B #6CA826 #26A8A3
square
#6226A8 #A8262B #6CA826 #26A8A3
split-complementary
#6226A8 #A8A326 #2BA826
monochromatic
#280F44 #451B76 #6226A8 #8039D2 #A06BDE

Accessibility & contrast

On white

8.89
#6226A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6226A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226A8
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226A8#FFFFFF#000000##FFFFFF
##6226A81.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#514966
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6226a8;
/* rgb */ color: rgb(98, 38, 168);
/* oklch */ color: oklch(43.2% 0.192 298.9);
Tailwind
colors: {
  custom: {
    50: '#9567c3',
    500: '#6226a8',
    950: '#000000',
  },
}
SCSS
$custom: #6226a8;
$custom-light: #9567c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6226a8",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 267.692,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43197,
    "c": 0.19191,
    "h": 298.9
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#6226A8
secondary
#99C466
accent
#E6429A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6226A8

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

Preview Lab → · Contrast checker → · Palette generator →

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