#6227A6#6227A6

#6227A6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.189 H 299.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#6227A6
RGBrgb(98, 39, 166)
HSLhsl(268, 62%, 40%)
HSVhsv(268, 77%, 65%)
CMYKcmyk(41%, 76.5%, 0%, 34.9%)
CIE-LABlab(31.35, 51.15, -57.57)
CIE-LCHlch(31.35, 77.01, 311.62°)
OKLaboklab(43.13% 0.0924 -0.1646)
OKLCHoklch(43.13% 0.189 299.3)
XYZxyz(12.6437, 6.8007, 36.7155)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227A6 #6BA627
analogous
#272CA6 #6227A6 #A127A6
triadic
#6227A6 #A66227 #27A662
tetradic
#6227A6 #A6272C #6BA627 #27A6A1
square
#6227A6 #A6272C #6BA627 #27A6A1
split-complementary
#6227A6 #A6A127 #2CA627
monochromatic
#271043 #451B74 #6227A6 #803AD1 #A06BDC

Accessibility & contrast

On white

8.90
#6227A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6227A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227A6
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227A6#FFFFFF#000000##FFFFFF
##6227A61.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#524865
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6227a6;
/* rgb */ color: rgb(98, 39, 166);
/* oklch */ color: oklch(43.1% 0.189 299.3);
Tailwind
colors: {
  custom: {
    50: '#9568c1',
    500: '#6227a6',
    950: '#000000',
  },
}
SCSS
$custom: #6227a6;
$custom-light: #9568c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6227a6",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 267.874,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43129,
    "c": 0.18875,
    "h": 299.3
  },
  "luminance": 0.06801
}

Semantic roles & 50–950 ramp

primary
#6227A6
secondary
#98C366
accent
#E5439A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6227A6

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

Preview Lab → · Contrast checker → · Palette generator →

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