#6226A7#6226A7

#6226A7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.191 H 299.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#6226A7
RGBrgb(98, 38, 167)
HSLhsl(268, 63%, 40%)
HSVhsv(268, 77%, 65%)
CMYKcmyk(41.3%, 77.2%, 0%, 34.5%)
CIE-LABlab(31.28, 51.83, -58.28)
CIE-LCHlch(31.28, 77.99, 311.65°)
OKLaboklab(43.11% 0.093 -0.1666)
OKLCHoklch(43.11% 0.191 299.2)
XYZxyz(12.7034, 6.7727, 37.1897)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226A7 #6BA726
analogous
#262AA7 #6226A7 #A226A7
triadic
#6226A7 #A76226 #26A762
tetradic
#6226A7 #A7262A #6BA726 #26A7A2
square
#6226A7 #A7262A #6BA726 #26A7A2
split-complementary
#6226A7 #A7A226 #2AA726
monochromatic
#270F43 #451B75 #6226A7 #8038D2 #A06ADD

Accessibility & contrast

On white

8.92
#6226A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6226A7
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226A7#FFFFFF#000000##FFFFFF
##6226A71.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#514865
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6226a7;
/* rgb */ color: rgb(98, 38, 167);
/* oklch */ color: oklch(43.1% 0.191 299.2);
Tailwind
colors: {
  custom: {
    50: '#9567c2',
    500: '#6226a7',
    950: '#000000',
  },
}
SCSS
$custom: #6226a7;
$custom-light: #9567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6226a7",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 267.907,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4311,
    "c": 0.19085,
    "h": 299.2
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

primary
#6226A7
secondary
#98C365
accent
#E6429A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6226A7

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

Preview Lab → · Contrast checker → · Palette generator →

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