#6227A5#6227A5

#6227A5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.188 H 299.6°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#6227A5
RGBrgb(98, 39, 165)
HSLhsl(268, 62%, 40%)
HSVhsv(268, 76%, 65%)
CMYKcmyk(40.6%, 76.4%, 0%, 35.3%)
CIE-LABlab(31.26, 50.90, -57.11)
CIE-LCHlch(31.26, 76.50, 311.71°)
OKLaboklab(43.04% 0.0927 -0.1632)
OKLCHoklch(43.04% 0.188 299.6)
XYZxyz(12.5523, 6.7642, 36.2343)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6227A5 #6AA527
analogous
#272BA5 #6227A5 #A127A5
triadic
#6227A5 #A56227 #27A562
tetradic
#6227A5 #A5272B #6AA527 #27A5A1
square
#6227A5 #A5272B #6AA527 #27A5A1
split-complementary
#6227A5 #A5A127 #2BA527
monochromatic
#271042 #451B74 #6227A5 #8039D0 #A06ADC

Accessibility & contrast

On white

8.93
#6227A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6227A5
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6227A5#FFFFFF#000000##FFFFFF
##6227A51.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#524865
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6227a5;
/* rgb */ color: rgb(98, 39, 165);
/* oklch */ color: oklch(43.0% 0.188 299.6);
Tailwind
colors: {
  custom: {
    50: '#9568c1',
    500: '#6227a5',
    950: '#000000',
  },
}
SCSS
$custom: #6227a5;
$custom-light: #9568c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6227a5",
  "rgb": {
    "r": 98,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 268.095,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.43043,
    "c": 0.18768,
    "h": 299.6
  },
  "luminance": 0.06764
}

Semantic roles & 50–950 ramp

primary
#6227A5
secondary
#97C266
accent
#E54399
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #6227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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