#6227AE#6227AE

#6227AE is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.197 H 297.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#6227AE
RGBrgb(98, 39, 174)
HSLhsl(266, 63%, 42%)
HSVhsv(266, 78%, 68%)
CMYKcmyk(43.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(32.04, 53.16, -61.24)
CIE-LCHlch(32.04, 81.10, 310.96°)
OKLaboklab(43.83% 0.0903 -0.1753)
OKLCHoklch(43.83% 0.197 297.2)
XYZxyz(13.4005, 7.1034, 40.7013)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227AE #73AE27
analogous
#2730AE #6227AE #A627AE
triadic
#6227AE #AE6227 #27AE62
tetradic
#6227AE #AE2730 #73AE27 #27AEA6
square
#6227AE #AE2730 #73AE27 #27AEA6
split-complementary
#6227AE #AEA627 #30AE27
monochromatic
#2A114A #461C7C #6227AE #803ED4 #A170DF

Accessibility & contrast

On white

8.67
#6227AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6227AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227AE
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227AE#FFFFFF#000000##FFFFFF
##6227AE1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#4E4C6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6227ae;
/* rgb */ color: rgb(98, 39, 174);
/* oklch */ color: oklch(43.8% 0.197 297.2);
Tailwind
colors: {
  custom: {
    50: '#9668c7',
    500: '#6227ae',
    950: '#000000',
  },
}
SCSS
$custom: #6227ae;
$custom-light: #9668c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6227ae",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 266.222,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43827,
    "c": 0.19723,
    "h": 297.2
  },
  "luminance": 0.07104
}

Semantic roles & 50–950 ramp

primary
#6227AE
secondary
#9EC66B
accent
#E6419E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6227AE

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

Preview Lab → · Contrast checker → · Palette generator →

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