#6228B0#6228B0

#6228B0 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.1% C 0.198 H 296.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#6228B0
RGBrgb(98, 40, 176)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 77%, 69%)
CMYKcmyk(44.3%, 77.3%, 0%, 31%)
CIE-LABlab(32.37, 53.24, -61.91)
CIE-LCHlch(32.37, 81.65, 310.70°)
OKLaboklab(44.11% 0.0889 -0.1773)
OKLCHoklch(44.11% 0.198 296.6)
XYZxyz(13.6302, 7.2485, 41.7469)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6228B0 #76B028
analogous
#2832B0 #6228B0 #A628B0
triadic
#6228B0 #B06228 #28B062
tetradic
#6228B0 #B02832 #76B028 #28B0A6
square
#6228B0 #B02832 #76B028 #28B0A6
split-complementary
#6228B0 #B0A628 #32B028
monochromatic
#2A114C #461D7E #6228B0 #8041D4 #A173DF

Accessibility & contrast

On white

8.57
#6228B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6228B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6228B0
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6228B0#FFFFFF#000000##FFFFFF
##6228B01.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#4D4D6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6228b0;
/* rgb */ color: rgb(98, 40, 176);
/* oklch */ color: oklch(44.1% 0.198 296.6);
Tailwind
colors: {
  custom: {
    50: '#9669c9',
    500: '#6228b0',
    950: '#000000',
  },
}
SCSS
$custom: #6228b0;
$custom-light: #9669c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6228b0",
  "rgb": {
    "r": 98,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 265.588,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44109,
    "c": 0.19834,
    "h": 296.6
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#6228B0
secondary
#A0C66D
accent
#E642A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6228B0

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

Preview Lab → · Contrast checker → · Palette generator →

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