#6228A9#6228A9

#6228A9 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.191 H 298.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#6228A9
RGBrgb(98, 40, 169)
HSLhsl(267, 62%, 41%)
HSVhsv(267, 76%, 66%)
CMYKcmyk(42%, 76.3%, 0%, 33.7%)
CIE-LABlab(31.76, 51.47, -58.71)
CIE-LCHlch(31.76, 78.07, 311.24°)
OKLaboklab(43.5% 0.0908 -0.1679)
OKLCHoklch(43.5% 0.191 298.4)
XYZxyz(12.9554, 6.9786, 38.1929)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228A9 #6FA928
analogous
#282EA9 #6228A9 #A228A9
triadic
#6228A9 #A96228 #28A962
tetradic
#6228A9 #A9282E #6FA928 #28A9A2
square
#6228A9 #A9282E #6FA928 #28A9A2
split-complementary
#6228A9 #A9A228 #2EA928
monochromatic
#291146 #451C78 #6228A9 #803DD1 #A06FDD

Accessibility & contrast

On white

8.77
#6228A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6228A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228A9
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228A9#FFFFFF#000000##FFFFFF
##6228A91.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#504A67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6228a9;
/* rgb */ color: rgb(98, 40, 169);
/* oklch */ color: oklch(43.5% 0.191 298.4);
Tailwind
colors: {
  custom: {
    50: '#9568c4',
    500: '#6228a9',
    950: '#000000',
  },
}
SCSS
$custom: #6228a9;
$custom-light: #9568c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6228a9",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 266.977,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43495,
    "c": 0.19089,
    "h": 298.4
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#6228A9
secondary
#9BC469
accent
#E5439C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6228A9

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

Preview Lab → · Contrast checker → · Palette generator →

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