#6D2EA6#6D2EA6

#6D2EA6 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.183 H 303.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#6D2EA6
RGBrgb(109, 46, 166)
HSLhsl(272, 57%, 42%)
HSVhsv(272, 72%, 65%)
CMYKcmyk(34.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(33.90, 50.02, -53.36)
CIE-LCHlch(33.90, 73.14, 313.15°)
OKLaboklab(45.24% 0.1017 -0.1519)
OKLCHoklch(45.24% 0.183 303.8)
XYZxyz(14.1650, 7.9584, 36.8589)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2EA6 #67A62E
analogous
#312EA6 #6D2EA6 #A62EA3
triadic
#6D2EA6 #A66D2E #2EA66D
tetradic
#6D2EA6 #A6312E #67A62E #2EA3A6
square
#6D2EA6 #A6312E #67A62E #2EA3A6
split-complementary
#6D2EA6 #A3A62E #2EA631
monochromatic
#2E1346 #4E2176 #6D2EA6 #8C46CC #AA76D9

Accessibility & contrast

On white

8.10
#6D2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6D2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D2EA6
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D2EA6#FFFFFF#000000##FFFFFF
##6D2EA61.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#624B67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d2ea6;
/* rgb */ color: rgb(109, 46, 166);
/* oklch */ color: oklch(45.2% 0.183 303.8);
Tailwind
colors: {
  custom: {
    50: '#9c6cc1',
    500: '#6d2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #6d2ea6;
$custom-light: #9c6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2ea6",
  "rgb": {
    "r": 109,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 271.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45241,
    "c": 0.18278,
    "h": 303.8
  },
  "luminance": 0.07958
}

Semantic roles & 50–950 ramp

primary
#6D2EA6
secondary
#96C16F
accent
#E04890
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6D2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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