#6227B0#6227B0

#6227B0 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.199 H 296.7°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#6227B0
RGBrgb(98, 39, 176)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 69%)
CMYKcmyk(44.3%, 77.8%, 0%, 31%)
CIE-LABlab(32.22, 53.66, -62.15)
CIE-LCHlch(32.22, 82.11, 310.81°)
OKLaboklab(44.01% 0.0897 -0.178)
OKLCHoklch(44.01% 0.199 296.7)
XYZxyz(13.5969, 7.1820, 41.7358)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227B0 #75B027
analogous
#2731B0 #6227B0 #A627B0
triadic
#6227B0 #B06227 #27B062
tetradic
#6227B0 #B02731 #75B027 #27B0A6
square
#6227B0 #B02731 #75B027 #27B0A6
split-complementary
#6227B0 #B0A627 #31B027
monochromatic
#2A114C #461C7E #6227B0 #8040D5 #A172E0

Accessibility & contrast

On white

8.62
#6227B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6227B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227B0
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227B0#FFFFFF#000000##FFFFFF
##6227B01.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6227b0;
/* rgb */ color: rgb(98, 39, 176);
/* oklch */ color: oklch(44.0% 0.199 296.7);
Tailwind
colors: {
  custom: {
    50: '#9668c9',
    500: '#6227b0',
    950: '#000000',
  },
}
SCSS
$custom: #6227b0;
$custom-light: #9668c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6227b0",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 265.839,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44005,
    "c": 0.19934,
    "h": 296.7
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#6227B0
secondary
#A0C76C
accent
#E7419F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6227B0

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

Preview Lab → · Contrast checker → · Palette generator →

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