#6226AF#6226AF

#6226AF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.199 H 297.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#6226AF
RGBrgb(98, 38, 175)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 69%)
CMYKcmyk(44%, 78.3%, 0%, 31.4%)
CIE-LABlab(31.98, 53.83, -61.93)
CIE-LCHlch(31.98, 82.06, 311.00°)
OKLaboklab(43.81% 0.0908 -0.1774)
OKLCHoklch(43.81% 0.199 297.1)
XYZxyz(13.4659, 7.0778, 41.2058)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226AF #73AF26
analogous
#262FAF #6226AF #A726AF
triadic
#6226AF #AF6226 #26AF62
tetradic
#6226AF #AF262F #73AF26 #26AFA7
square
#6226AF #AF262F #73AF26 #26AFA7
split-complementary
#6226AF #AFA726 #2FAF26
monochromatic
#2A104A #461B7D #6226AF #803DD5 #A170E0

Accessibility & contrast

On white

8.69
#6226AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6226AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226AF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226AF#FFFFFF#000000##FFFFFF
##6226AF1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#4E4C6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6226af;
/* rgb */ color: rgb(98, 38, 175);
/* oklch */ color: oklch(43.8% 0.199 297.1);
Tailwind
colors: {
  custom: {
    50: '#9668c8',
    500: '#6226af',
    950: '#000000',
  },
}
SCSS
$custom: #6226af;
$custom-light: #9668c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6226af",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 266.277,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43814,
    "c": 0.19927,
    "h": 297.1
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#6226AF
secondary
#9EC76A
accent
#E7409E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6226AF

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

Preview Lab → · Contrast checker → · Palette generator →

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