#6B2EA6#6B2EA6

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

Color values

HEX#6B2EA6
RGBrgb(107, 46, 166)
HSLhsl(271, 57%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(35.5%, 72.3%, 0%, 34.9%)
CIE-LABlab(33.63, 49.63, -53.80)
CIE-LCHlch(33.63, 73.20, 312.69°)
OKLaboklab(45% 0.0989 -0.1532)
OKLCHoklch(45% 0.182 302.8)
XYZxyz(13.9217, 7.8330, 36.8475)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EA6 #69A62E
analogous
#2F2EA6 #6B2EA6 #A62EA5
triadic
#6B2EA6 #A66B2E #2EA66B
tetradic
#6B2EA6 #A62F2E #69A62E #2EA5A6
square
#6B2EA6 #A62F2E #69A62E #2EA5A6
split-complementary
#6B2EA6 #A5A62E #2EA62F
monochromatic
#2D1346 #4C2176 #6B2EA6 #8A46CC #A876D9

Accessibility & contrast

On white

8.18
#6B2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6B2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EA6
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EA6#FFFFFF#000000##FFFFFF
##6B2EA61.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2ea6;
/* rgb */ color: rgb(107, 46, 166);
/* oklch */ color: oklch(45.0% 0.182 302.8);
Tailwind
colors: {
  custom: {
    50: '#9b6cc1',
    500: '#6b2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ea6;
$custom-light: #9b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ea6",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 270.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44997,
    "c": 0.18236,
    "h": 302.8
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#6B2EA6
secondary
#97C16F
accent
#E04893
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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