#6227B1#6227B1

#6227B1 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.1% C 0.200 H 296.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#6227B1
RGBrgb(98, 39, 177)
HSLhsl(266, 64%, 42%)
HSVhsv(266, 78%, 69%)
CMYKcmyk(44.6%, 78%, 0%, 30.6%)
CIE-LABlab(32.31, 53.92, -62.60)
CIE-LCHlch(32.31, 82.62, 310.74°)
OKLaboklab(44.09% 0.0894 -0.1793)
OKLCHoklch(44.09% 0.2 296.5)
XYZxyz(13.6962, 7.2217, 42.2588)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227B1 #76B127
analogous
#2731B1 #6227B1 #A727B1
triadic
#6227B1 #B16227 #27B162
tetradic
#6227B1 #B12731 #76B127 #27B1A7
square
#6227B1 #B12731 #76B127 #27B1A7
split-complementary
#6227B1 #B1A727 #31B127
monochromatic
#2A114D #461C7F #6227B1 #8040D5 #A172E0

Accessibility & contrast

On white

8.59
#6227B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6227B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6227B1
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227B1#FFFFFF#000000##FFFFFF
##6227B11.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#4C4D6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6227b1;
/* rgb */ color: rgb(98, 39, 177);
/* oklch */ color: oklch(44.1% 0.200 296.5);
Tailwind
colors: {
  custom: {
    50: '#9668c9',
    500: '#6227b1',
    950: '#000000',
  },
}
SCSS
$custom: #6227b1;
$custom-light: #9668c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6227b1",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 265.652,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44094,
    "c": 0.2004,
    "h": 296.5
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#6227B1
secondary
#A0C76D
accent
#E741A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6227B1

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

Preview Lab → · Contrast checker → · Palette generator →

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