#6A2EA6#6A2EA6

#6A2EA6 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.182 H 302.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#6A2EA6
RGBrgb(106, 46, 166)
HSLhsl(270, 57%, 42%)
HSVhsv(270, 72%, 65%)
CMYKcmyk(36.1%, 72.3%, 0%, 34.9%)
CIE-LABlab(33.50, 49.44, -54.02)
CIE-LCHlch(33.50, 73.23, 312.47°)
OKLaboklab(44.88% 0.0975 -0.1539)
OKLCHoklch(44.88% 0.182 302.3)
XYZxyz(13.8022, 7.7713, 36.8419)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EA6 #6AA62E
analogous
#2E2EA6 #6A2EA6 #A62EA6
triadic
#6A2EA6 #A66A2E #2EA66A
tetradic
#6A2EA6 #A62E2E #6AA62E #2EA6A6
square
#6A2EA6 #A62E2E #6AA62E #2EA6A6
split-complementary
#6A2EA6 #A6A62E #2EA62E
monochromatic
#2D1346 #4B2176 #6A2EA6 #8946CC #A776D9

Accessibility & contrast

On white

8.22
#6A2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6A2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EA6
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EA6#FFFFFF#000000##FFFFFF
##6A2EA61.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#5D4B67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2ea6;
/* rgb */ color: rgb(106, 46, 166);
/* oklch */ color: oklch(44.9% 0.182 302.3);
Tailwind
colors: {
  custom: {
    50: '#9a6cc1',
    500: '#6a2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ea6;
$custom-light: #9a6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ea6",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 270,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44875,
    "c": 0.18216,
    "h": 302.3
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#6A2EA6
secondary
#98C16F
accent
#E04894
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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