#6228AD#6228AD

#6228AD is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.195 H 297.4°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#6228AD
RGBrgb(98, 40, 173)
HSLhsl(266, 62%, 42%)
HSVhsv(266, 77%, 68%)
CMYKcmyk(43.4%, 76.9%, 0%, 32.2%)
CIE-LABlab(32.10, 52.48, -60.54)
CIE-LCHlch(32.10, 80.12, 310.92°)
OKLaboklab(43.84% 0.0897 -0.1733)
OKLCHoklch(43.84% 0.195 297.4)
XYZxyz(13.3366, 7.1311, 40.2008)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228AD #73AD28
analogous
#2831AD #6228AD #A428AD
triadic
#6228AD #AD6228 #28AD62
tetradic
#6228AD #AD2831 #73AD28 #28ADA4
square
#6228AD #AD2831 #73AD28 #28ADA4
split-complementary
#6228AD #ADA428 #31AD28
monochromatic
#2A114A #461D7B #6228AD #803FD3 #A171DE

Accessibility & contrast

On white

8.66
#6228AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6228AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228AD
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228AD#FFFFFF#000000##FFFFFF
##6228AD1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#4E4C69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6228ad;
/* rgb */ color: rgb(98, 40, 173);
/* oklch */ color: oklch(43.8% 0.195 297.4);
Tailwind
colors: {
  custom: {
    50: '#9668c6',
    500: '#6228ad',
    950: '#000000',
  },
}
SCSS
$custom: #6228ad;
$custom-light: #9668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6228ad",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 266.165,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43844,
    "c": 0.19515,
    "h": 297.4
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#6228AD
secondary
#9EC56C
accent
#E6429E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6228AD

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

Preview Lab → · Contrast checker → · Palette generator →

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