#6A229C#6A229C

#6A229C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.185 H 306.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#6A229C
RGBrgb(106, 34, 156)
HSLhsl(275, 64%, 37%)
HSVhsv(275, 78%, 61%)
CMYKcmyk(32.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(30.90, 52.22, -52.20)
CIE-LCHlch(30.90, 73.84, 315.01°)
OKLaboklab(42.79% 0.111 -0.1485)
OKLCHoklch(42.79% 0.185 306.8)
XYZxyz(12.5153, 6.6087, 32.0623)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A229C #549C22
analogous
#2D229C #6A229C #9C2291
triadic
#6A229C #9C6A22 #229C6A
tetradic
#6A229C #9C2D22 #549C22 #22919C
square
#6A229C #9C2D22 #549C22 #22919C
split-complementary
#6A229C #919C22 #229C2D
monochromatic
#260C38 #48176A #6A229C #8C2DCE #A85DDC

Accessibility & contrast

On white

9.04
#6A229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6A229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A229C
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A229C#FFFFFF#000000##FFFFFF
##6A229C1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#61415E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a229c;
/* rgb */ color: rgb(106, 34, 156);
/* oklch */ color: oklch(42.8% 0.185 306.8);
Tailwind
colors: {
  custom: {
    50: '#9a66ba',
    500: '#6a229c',
    950: '#000000',
  },
}
SCSS
$custom: #6a229c;
$custom-light: #9a66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#6a229c",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 275.41,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42791,
    "c": 0.18534,
    "h": 306.8
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#6A229C
secondary
#84C05A
accent
#E74185
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A229C

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

Preview Lab → · Contrast checker → · Palette generator →

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