#6228A3#6228A3

#6228A3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.184 H 300.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#6228A3
RGBrgb(98, 40, 163)
HSLhsl(268, 61%, 40%)
HSVhsv(268, 75%, 64%)
CMYKcmyk(39.9%, 75.5%, 0%, 36.1%)
CIE-LABlab(31.25, 49.96, -55.92)
CIE-LCHlch(31.25, 74.98, 311.78°)
OKLaboklab(42.98% 0.0923 -0.1597)
OKLCHoklch(42.98% 0.184 300)
XYZxyz(12.4050, 6.7585, 35.2942)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228A3 #69A328
analogous
#282BA3 #6228A3 #A028A3
triadic
#6228A3 #A36228 #28A362
tetradic
#6228A3 #A3282B #69A328 #28A3A0
square
#6228A3 #A3282B #69A328 #28A3A0
split-complementary
#6228A3 #A3A028 #2BA328
monochromatic
#271041 #441C72 #6228A3 #803ACF #A06BDB

Accessibility & contrast

On white

8.93
#6228A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6228A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228A3
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228A3#FFFFFF#000000##FFFFFF
##6228A31.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#534864
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6228a3;
/* rgb */ color: rgb(98, 40, 163);
/* oklch */ color: oklch(43.0% 0.184 300.0);
Tailwind
colors: {
  custom: {
    50: '#9568bf',
    500: '#6228a3',
    950: '#000000',
  },
}
SCSS
$custom: #6228a3;
$custom-light: #9568bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6228a3",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 268.293,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42981,
    "c": 0.18446,
    "h": 300
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#6228A3
secondary
#96C166
accent
#E44498
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6228A3

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

Preview Lab → · Contrast checker → · Palette generator →

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