#6227A3#6227A3

#6227A3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.186 H 300.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#6227A3
RGBrgb(98, 39, 163)
HSLhsl(269, 61%, 40%)
HSVhsv(269, 76%, 64%)
CMYKcmyk(39.9%, 76.1%, 0%, 36.1%)
CIE-LABlab(31.09, 50.40, -56.17)
CIE-LCHlch(31.09, 75.47, 311.90°)
OKLaboklab(42.87% 0.0932 -0.1605)
OKLCHoklch(42.87% 0.186 300.1)
XYZxyz(12.3717, 6.6919, 35.2831)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227A3 #68A327
analogous
#272AA3 #6227A3 #A027A3
triadic
#6227A3 #A36227 #27A362
tetradic
#6227A3 #A3272A #68A327 #27A3A0
square
#6227A3 #A3272A #68A327 #27A3A0
split-complementary
#6227A3 #A3A027 #2AA327
monochromatic
#270F40 #441B72 #6227A3 #8038CF #9F69DB

Accessibility & contrast

On white

8.98
#6227A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6227A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227A3
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227A3#FFFFFF#000000##FFFFFF
##6227A31.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#534763
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6227a3;
/* rgb */ color: rgb(98, 39, 163);
/* oklch */ color: oklch(42.9% 0.186 300.1);
Tailwind
colors: {
  custom: {
    50: '#9567bf',
    500: '#6227a3',
    950: '#000000',
  },
}
SCSS
$custom: #6227a3;
$custom-light: #9567bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6227a3",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 268.548,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42872,
    "c": 0.18556,
    "h": 300.1
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#6227A3
secondary
#95C164
accent
#E44398
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6227A3

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

Preview Lab → · Contrast checker → · Palette generator →

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