#6A229D#6A229D

#6A229D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.9% C 0.186 H 306.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#6A229D
RGBrgb(106, 34, 157)
HSLhsl(275, 64%, 37%)
HSVhsv(275, 78%, 62%)
CMYKcmyk(32.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(30.98, 52.45, -52.68)
CIE-LCHlch(30.98, 74.34, 314.88°)
OKLaboklab(42.87% 0.1107 -0.1499)
OKLCHoklch(42.87% 0.186 306.5)
XYZxyz(12.6004, 6.6427, 32.5101)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A229D #559D22
analogous
#2D229D #6A229D #9D2293
triadic
#6A229D #9D6A22 #229D6A
tetradic
#6A229D #9D2D22 #559D22 #22939D
square
#6A229D #9D2D22 #559D22 #22939D
split-complementary
#6A229D #939D22 #229D2D
monochromatic
#260C38 #48176B #6A229D #8C2DCF #A85DDC

Accessibility & contrast

On white

9.02
#6A229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6A229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A229D
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A229D#FFFFFF#000000##FFFFFF
##6A229D1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#61415F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a229d;
/* rgb */ color: rgb(106, 34, 157);
/* oklch */ color: oklch(42.9% 0.186 306.5);
Tailwind
colors: {
  custom: {
    50: '#9a66bb',
    500: '#6a229d',
    950: '#000000',
  },
}
SCSS
$custom: #6a229d;
$custom-light: #9a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a229d",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 275.122,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.18633,
    "h": 306.5
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#6A229D
secondary
#85C15A
accent
#E74086
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A229D

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

Preview Lab → · Contrast checker → · Palette generator →

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