#6A2292#6A2292

#6A2292 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.175 H 310.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#6A2292
RGBrgb(106, 34, 146)
HSLhsl(279, 62%, 35%)
HSVhsv(279, 77%, 57%)
CMYKcmyk(27.4%, 76.7%, 0%, 42.7%)
CIE-LABlab(30.12, 49.97, -47.34)
CIE-LCHlch(30.12, 68.83, 316.54°)
OKLaboklab(42% 0.1131 -0.1342)
OKLCHoklch(42% 0.175 310.1)
XYZxyz(11.7032, 6.2838, 27.7849)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2292 #4A9222
analogous
#322292 #6A2292 #922282
triadic
#6A2292 #926A22 #22926A
tetradic
#6A2292 #923222 #4A9222 #228292
square
#6A2292 #923222 #4A9222 #228292
split-complementary
#6A2292 #829222 #229232
monochromatic
#220B2F #461660 #6A2292 #8E2EC4 #AA57D8

Accessibility & contrast

On white

9.31
#6A2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6A2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2292
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2292#FFFFFF#000000##FFFFFF
##6A22921.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#044890
Tritanopia (blue-blind)
#643D59
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a2292;
/* rgb */ color: rgb(106, 34, 146);
/* oklch */ color: oklch(42.0% 0.175 310.1);
Tailwind
colors: {
  custom: {
    50: '#9965b3',
    500: '#6a2292',
    950: '#000000',
  },
}
SCSS
$custom: #6a2292;
$custom-light: #9965b3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2292",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 278.571,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41996,
    "c": 0.17549,
    "h": 310.1
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#6A2292
secondary
#79BC54
accent
#E5437D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2292

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

Preview Lab → · Contrast checker → · Palette generator →

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