#6226A2#6226A2

#6226A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.186 H 300.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#6226A2
RGBrgb(98, 38, 162)
HSLhsl(269, 62%, 39%)
HSVhsv(269, 77%, 64%)
CMYKcmyk(39.5%, 76.5%, 0%, 36.5%)
CIE-LABlab(30.86, 50.59, -55.96)
CIE-LCHlch(30.86, 75.43, 312.12°)
OKLaboklab(42.68% 0.0943 -0.1598)
OKLCHoklch(42.68% 0.186 300.5)
XYZxyz(12.2501, 6.5914, 34.8023)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6226A2 #66A226
analogous
#2628A2 #6226A2 #A026A2
triadic
#6226A2 #A26226 #26A262
tetradic
#6226A2 #A22628 #66A226 #26A2A0
square
#6226A2 #A22628 #66A226 #26A2A0
split-complementary
#6226A2 #A2A026 #28A226
monochromatic
#260F3F #441A70 #6226A2 #8035D0 #9F67DB

Accessibility & contrast

On white

9.06
#6226A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6226A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6226A2
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6226A2#FFFFFF#000000##FFFFFF
##6226A21.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#534663
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6226a2;
/* rgb */ color: rgb(98, 38, 162);
/* oklch */ color: oklch(42.7% 0.186 300.5);
Tailwind
colors: {
  custom: {
    50: '#9567be',
    500: '#6226a2',
    950: '#000000',
  },
}
SCSS
$custom: #6226a2;
$custom-light: #9567be;
$custom-dark: #000000;
JSON
{
  "hex": "#6226a2",
  "rgb": {
    "r": 98,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 269.032,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42679,
    "c": 0.18557,
    "h": 300.5
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#6226A2
secondary
#93C163
accent
#E54397
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6226A2

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

Preview Lab → · Contrast checker → · Palette generator →

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