#6228A2#6228A2

#6228A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.183 H 300.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#6228A2
RGBrgb(98, 40, 162)
HSLhsl(269, 60%, 40%)
HSVhsv(269, 75%, 64%)
CMYKcmyk(39.5%, 75.3%, 0%, 36.5%)
CIE-LABlab(31.17, 49.71, -55.45)
CIE-LCHlch(31.17, 74.47, 311.87°)
OKLaboklab(42.9% 0.0925 -0.1583)
OKLCHoklch(42.9% 0.183 300.3)
XYZxyz(12.3158, 6.7228, 34.8242)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228A2 #68A228
analogous
#282BA2 #6228A2 #9F28A2
triadic
#6228A2 #A26228 #28A262
tetradic
#6228A2 #A2282B #68A228 #28A29F
square
#6228A2 #A2282B #68A228 #28A29F
split-complementary
#6228A2 #A29F28 #2BA228
monochromatic
#271040 #441C71 #6228A2 #8039CE #9F6ADA

Accessibility & contrast

On white

8.96
#6228A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6228A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228A2
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228A2#FFFFFF#000000##FFFFFF
##6228A21.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6228a2;
/* rgb */ color: rgb(98, 40, 162);
/* oklch */ color: oklch(42.9% 0.183 300.3);
Tailwind
colors: {
  custom: {
    50: '#9568be',
    500: '#6228a2',
    950: '#000000',
  },
}
SCSS
$custom: #6228a2;
$custom-light: #9568be;
$custom-dark: #000000;
JSON
{
  "hex": "#6228a2",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 268.525,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42897,
    "c": 0.18338,
    "h": 300.3
  },
  "luminance": 0.06723
}

Semantic roles & 50–950 ramp

primary
#6228A2
secondary
#95C165
accent
#E44498
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6228A2

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

Preview Lab → · Contrast checker → · Palette generator →

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