#6226B0#6226B0

#6226B0 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.9% C 0.200 H 296.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6226B0
RGBrgb(98, 38, 176)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 69%)
CMYKcmyk(44.3%, 78.4%, 0%, 31%)
CIE-LABlab(32.07, 54.08, -62.39)
CIE-LCHlch(32.07, 82.57, 310.92°)
OKLaboklab(43.9% 0.0905 -0.1787)
OKLCHoklch(43.9% 0.2 296.9)
XYZxyz(13.5645, 7.1172, 41.7250)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226B0 #74B026
analogous
#262FB0 #6226B0 #A726B0
triadic
#6226B0 #B06226 #26B062
tetradic
#6226B0 #B0262F #74B026 #26B0A7
square
#6226B0 #B0262F #74B026 #26B0A7
split-complementary
#6226B0 #B0A726 #2FB026
monochromatic
#2A104B #461B7E #6226B0 #803ED5 #A170E0

Accessibility & contrast

On white

8.67
#6226B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6226B0
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226B0#FFFFFF#000000##FFFFFF
##6226B01.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#4D4C6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6226b0;
/* rgb */ color: rgb(98, 38, 176);
/* oklch */ color: oklch(43.9% 0.200 296.9);
Tailwind
colors: {
  custom: {
    50: '#9668c9',
    500: '#6226b0',
    950: '#000000',
  },
}
SCSS
$custom: #6226b0;
$custom-light: #9668c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6226b0",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 266.087,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43903,
    "c": 0.20032,
    "h": 296.9
  },
  "luminance": 0.07117
}

Semantic roles & 50–950 ramp

primary
#6226B0
secondary
#9FC76B
accent
#E7409F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6226B0

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

Preview Lab → · Contrast checker → · Palette generator →

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