#6A229E#6A229E

#6A229E is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.187 H 306.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#6A229E
RGBrgb(106, 34, 158)
HSLhsl(275, 65%, 38%)
HSVhsv(275, 78%, 62%)
CMYKcmyk(32.9%, 78.5%, 0%, 38%)
CIE-LABlab(31.06, 52.68, -53.15)
CIE-LCHlch(31.06, 74.84, 314.74°)
OKLaboklab(42.95% 0.1105 -0.1513)
OKLCHoklch(42.95% 0.187 306.1)
XYZxyz(12.6861, 6.6770, 32.9616)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A229E #569E22
analogous
#2C229E #6A229E #9E2294
triadic
#6A229E #9E6A22 #229E6A
tetradic
#6A229E #9E2C22 #569E22 #22949E
square
#6A229E #9E2C22 #569E22 #22949E
split-complementary
#6A229E #949E22 #229E2C
monochromatic
#260C39 #48176C #6A229E #8C2DD0 #A75EDC

Accessibility & contrast

On white

8.99
#6A229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6A229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A229E
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A229E#FFFFFF#000000##FFFFFF
##6A229E1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#61425F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a229e;
/* rgb */ color: rgb(106, 34, 158);
/* oklch */ color: oklch(43.0% 0.187 306.1);
Tailwind
colors: {
  custom: {
    50: '#9a66bc',
    500: '#6a229e',
    950: '#000000',
  },
}
SCSS
$custom: #6a229e;
$custom-light: #9a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a229e",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 274.839,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.18732,
    "h": 306.1
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#6A229E
secondary
#86C15B
accent
#E84086
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A229E

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

Preview Lab → · Contrast checker → · Palette generator →

#6A229E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva