#6A229A#6A229A

#6A229A is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.183 H 307.4°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#6A229A
RGBrgb(106, 34, 154)
HSLhsl(276, 64%, 37%)
HSVhsv(276, 78%, 60%)
CMYKcmyk(31.2%, 77.9%, 0%, 39.6%)
CIE-LABlab(30.74, 51.77, -51.24)
CIE-LCHlch(30.74, 72.84, 315.29°)
OKLaboklab(42.63% 0.1114 -0.1456)
OKLCHoklch(42.63% 0.183 307.4)
XYZxyz(12.3474, 6.5415, 31.1778)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A229A #529A22
analogous
#2E229A #6A229A #9A228E
triadic
#6A229A #9A6A22 #229A6A
tetradic
#6A229A #9A2E22 #529A22 #228E9A
square
#6A229A #9A2E22 #529A22 #228E9A
split-complementary
#6A229A #8E9A22 #229A2E
monochromatic
#250C36 #471768 #6A229A #8D2DCC #A85BDB

Accessibility & contrast

On white

9.10
#6A229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6A229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A229A
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A229A#FFFFFF#000000##FFFFFF
##6A229A1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#62405D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a229a;
/* rgb */ color: rgb(106, 34, 154);
/* oklch */ color: oklch(42.6% 0.183 307.4);
Tailwind
colors: {
  custom: {
    50: '#9a66b9',
    500: '#6a229a',
    950: '#000000',
  },
}
SCSS
$custom: #6a229a;
$custom-light: #9a66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a229a",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 276,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42629,
    "c": 0.18337,
    "h": 307.4
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#6A229A
secondary
#82BF58
accent
#E74183
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A229A

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

Preview Lab → · Contrast checker → · Palette generator →

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