#6228A8#6228A8

#6228A8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.190 H 298.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6228A8
RGBrgb(98, 40, 168)
HSLhsl(267, 62%, 41%)
HSVhsv(267, 76%, 66%)
CMYKcmyk(41.7%, 76.2%, 0%, 34.1%)
CIE-LABlab(31.67, 51.21, -58.25)
CIE-LCHlch(31.67, 77.56, 311.32°)
OKLaboklab(43.41% 0.091 -0.1666)
OKLCHoklch(43.41% 0.19 298.7)
XYZxyz(12.8619, 6.9412, 37.7003)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228A8 #6EA828
analogous
#282EA8 #6228A8 #A228A8
triadic
#6228A8 #A86228 #28A862
tetradic
#6228A8 #A8282E #6EA828 #28A8A2
square
#6228A8 #A8282E #6EA828 #28A8A2
split-complementary
#6228A8 #A8A228 #2EA828
monochromatic
#281045 #451C77 #6228A8 #803DD1 #A06EDC

Accessibility & contrast

On white

8.79
#6228A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6228A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228A8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228A8#FFFFFF#000000##FFFFFF
##6228A81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#514A67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6228a8;
/* rgb */ color: rgb(98, 40, 168);
/* oklch */ color: oklch(43.4% 0.190 298.7);
Tailwind
colors: {
  custom: {
    50: '#9568c3',
    500: '#6228a8',
    950: '#000000',
  },
}
SCSS
$custom: #6228a8;
$custom-light: #9568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6228a8",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 267.188,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43409,
    "c": 0.18981,
    "h": 298.7
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#6228A8
secondary
#9AC369
accent
#E5439B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6228A8

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

Preview Lab → · Contrast checker → · Palette generator →

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