#6228A7#6228A7

#6228A7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.189 H 298.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#6228A7
RGBrgb(98, 40, 167)
HSLhsl(267, 61%, 41%)
HSVhsv(267, 76%, 65%)
CMYKcmyk(41.3%, 76%, 0%, 34.5%)
CIE-LABlab(31.59, 50.96, -57.78)
CIE-LCHlch(31.59, 77.05, 311.41°)
OKLaboklab(43.32% 0.0913 -0.1652)
OKLCHoklch(43.32% 0.189 298.9)
XYZxyz(12.7691, 6.9041, 37.2116)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228A7 #6DA728
analogous
#282DA7 #6228A7 #A228A7
triadic
#6228A7 #A76228 #28A762
tetradic
#6228A7 #A7282D #6DA728 #28A7A2
square
#6228A7 #A7282D #6DA728 #28A7A2
split-complementary
#6228A7 #A7A228 #2DA728
monochromatic
#281044 #451C76 #6228A7 #803CD0 #A06DDC

Accessibility & contrast

On white

8.82
#6228A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6228A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228A7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228A7#FFFFFF#000000##FFFFFF
##6228A71.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#514966
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6228a7;
/* rgb */ color: rgb(98, 40, 167);
/* oklch */ color: oklch(43.3% 0.189 298.9);
Tailwind
colors: {
  custom: {
    50: '#9568c2',
    500: '#6228a7',
    950: '#000000',
  },
}
SCSS
$custom: #6228a7;
$custom-light: #9568c2;
$custom-dark: #000000;
JSON
{
  "hex": "#6228a7",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 267.402,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43323,
    "c": 0.18874,
    "h": 298.9
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#6228A7
secondary
#99C368
accent
#E4439B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6228A7

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

Preview Lab → · Contrast checker → · Palette generator →

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