#6A2EA4#6A2EA4

#6A2EA4 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.180 H 302.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#6A2EA4
RGBrgb(106, 46, 164)
HSLhsl(271, 56%, 41%)
HSVhsv(271, 72%, 64%)
CMYKcmyk(35.4%, 72%, 0%, 35.7%)
CIE-LABlab(33.35, 48.95, -53.07)
CIE-LCHlch(33.35, 72.19, 312.69°)
OKLaboklab(44.72% 0.0978 -0.1511)
OKLCHoklch(44.72% 0.18 302.9)
XYZxyz(13.6201, 7.6985, 35.8832)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EA4 #68A42E
analogous
#2F2EA4 #6A2EA4 #A42EA3
triadic
#6A2EA4 #A46A2E #2EA46A
tetradic
#6A2EA4 #A42F2E #68A42E #2EA3A4
square
#6A2EA4 #A42F2E #68A42E #2EA3A4
split-complementary
#6A2EA4 #A3A42E #2EA42F
monochromatic
#2C1344 #4B2174 #6A2EA4 #8945CB #A774D8

Accessibility & contrast

On white

8.27
#6A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6A2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EA4
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EA4#FFFFFF#000000##FFFFFF
##6A2EA41.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#5E4A66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2ea4;
/* rgb */ color: rgb(106, 46, 164);
/* oklch */ color: oklch(44.7% 0.180 302.9);
Tailwind
colors: {
  custom: {
    50: '#9a6cc0',
    500: '#6a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ea4;
$custom-light: #9a6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ea4",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 270.508,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44717,
    "c": 0.18,
    "h": 302.9
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#6A2EA4
secondary
#96C06E
accent
#DF4893
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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