#6228AF#6228AF

#6228AF is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.197 H 296.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#6228AF
RGBrgb(98, 40, 175)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 77%, 69%)
CMYKcmyk(44%, 77.1%, 0%, 31.4%)
CIE-LABlab(32.28, 52.98, -61.45)
CIE-LCHlch(32.28, 81.14, 310.77°)
OKLaboklab(44.02% 0.0892 -0.176)
OKLCHoklch(44.02% 0.197 296.9)
XYZxyz(13.5316, 7.2091, 41.2277)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228AF #75AF28
analogous
#2831AF #6228AF #A628AF
triadic
#6228AF #AF6228 #28AF62
tetradic
#6228AF #AF2831 #75AF28 #28AFA6
square
#6228AF #AF2831 #75AF28 #28AFA6
split-complementary
#6228AF #AFA628 #31AF28
monochromatic
#2A114B #461D7D #6228AF #8041D4 #A173DF

Accessibility & contrast

On white

8.60
#6228AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6228AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228AF
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228AF#FFFFFF#000000##FFFFFF
##6228AF1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6228af;
/* rgb */ color: rgb(98, 40, 175);
/* oklch */ color: oklch(44.0% 0.197 296.9);
Tailwind
colors: {
  custom: {
    50: '#9669c8',
    500: '#6228af',
    950: '#000000',
  },
}
SCSS
$custom: #6228af;
$custom-light: #9669c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6228af",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 265.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4402,
    "c": 0.19728,
    "h": 296.9
  },
  "luminance": 0.07209
}

Semantic roles & 50–950 ramp

primary
#6228AF
secondary
#A0C66D
accent
#E6429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6228AF

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

Preview Lab → · Contrast checker → · Palette generator →

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