#6227A4#6227A4

#6227A4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.187 H 299.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#6227A4
RGBrgb(98, 39, 164)
HSLhsl(268, 62%, 40%)
HSVhsv(268, 76%, 64%)
CMYKcmyk(40.2%, 76.2%, 0%, 35.7%)
CIE-LABlab(31.18, 50.65, -56.64)
CIE-LCHlch(31.18, 75.98, 311.80°)
OKLaboklab(42.96% 0.0929 -0.1618)
OKLCHoklch(42.96% 0.187 299.9)
XYZxyz(12.4617, 6.7279, 35.7568)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227A4 #69A427
analogous
#272BA4 #6227A4 #A027A4
triadic
#6227A4 #A46227 #27A462
tetradic
#6227A4 #A4272B #69A427 #27A4A0
square
#6227A4 #A4272B #69A427 #27A4A0
split-complementary
#6227A4 #A4A027 #2BA427
monochromatic
#270F41 #441B73 #6227A4 #8038D0 #A06ADC

Accessibility & contrast

On white

8.95
#6227A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6227A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227A4
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227A4#FFFFFF#000000##FFFFFF
##6227A41.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#524864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6227a4;
/* rgb */ color: rgb(98, 39, 164);
/* oklch */ color: oklch(43.0% 0.187 299.9);
Tailwind
colors: {
  custom: {
    50: '#9568c0',
    500: '#6227a4',
    950: '#000000',
  },
}
SCSS
$custom: #6227a4;
$custom-light: #9568c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6227a4",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 268.32,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42957,
    "c": 0.18662,
    "h": 299.9
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#6227A4
secondary
#96C265
accent
#E54398
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6227A4

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

Preview Lab → · Contrast checker → · Palette generator →

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