#6227AF#6227AF

#6227AF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.198 H 297.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#6227AF
RGBrgb(98, 39, 175)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 69%)
CMYKcmyk(44%, 77.7%, 0%, 31.4%)
CIE-LABlab(32.13, 53.41, -61.70)
CIE-LCHlch(32.13, 81.60, 310.88°)
OKLaboklab(43.92% 0.09 -0.1767)
OKLCHoklch(43.92% 0.198 297)
XYZxyz(13.4983, 7.1426, 41.2166)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227AF #74AF27
analogous
#2730AF #6227AF #A627AF
triadic
#6227AF #AF6227 #27AF62
tetradic
#6227AF #AF2730 #74AF27 #27AFA6
square
#6227AF #AF2730 #74AF27 #27AFA6
split-complementary
#6227AF #AFA627 #30AF27
monochromatic
#2A114B #461C7D #6227AF #803FD4 #A171DF

Accessibility & contrast

On white

8.65
#6227AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6227AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227AF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227AF#FFFFFF#000000##FFFFFF
##6227AF1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#4D4C6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6227af;
/* rgb */ color: rgb(98, 39, 175);
/* oklch */ color: oklch(43.9% 0.198 297.0);
Tailwind
colors: {
  custom: {
    50: '#9668c8',
    500: '#6227af',
    950: '#000000',
  },
}
SCSS
$custom: #6227af;
$custom-light: #9668c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6227af",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 266.029,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43916,
    "c": 0.19828,
    "h": 297
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#6227AF
secondary
#9FC66B
accent
#E7419F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6227AF

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

Preview Lab → · Contrast checker → · Palette generator →

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