#6B2BA6#6B2BA6

#6B2BA6 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.186 H 303.2°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#6B2BA6
RGBrgb(107, 43, 166)
HSLhsl(271, 59%, 41%)
HSVhsv(271, 74%, 65%)
CMYKcmyk(35.5%, 74.1%, 0%, 34.9%)
CIE-LABlab(33.15, 51.00, -54.58)
CIE-LCHlch(33.15, 74.70, 313.05°)
OKLaboklab(44.66% 0.1019 -0.1555)
OKLCHoklch(44.66% 0.186 303.2)
XYZxyz(13.8086, 7.6067, 36.8098)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2BA6 #66A62B
analogous
#2E2BA6 #6B2BA6 #A62BA3
triadic
#6B2BA6 #A66B2B #2BA66B
tetradic
#6B2BA6 #A62E2B #66A62B #2BA3A6
square
#6B2BA6 #A62E2B #66A62B #2BA3A6
split-complementary
#6B2BA6 #A3A62B #2BA62E
monochromatic
#2C1245 #4C1E75 #6B2BA6 #8A41CE #A871DA

Accessibility & contrast

On white

8.33
#6B2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6B2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2BA6
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2BA6#FFFFFF#000000##FFFFFF
##6B2BA61.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#5F4966
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b2ba6;
/* rgb */ color: rgb(107, 43, 166);
/* oklch */ color: oklch(44.7% 0.186 303.2);
Tailwind
colors: {
  custom: {
    50: '#9b6bc1',
    500: '#6b2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ba6;
$custom-light: #9b6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ba6",
  "rgb": {
    "r": 107,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 271.22,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.18589,
    "h": 303.2
  },
  "luminance": 0.07607
}

Semantic roles & 50–950 ramp

primary
#6B2BA6
secondary
#95C16B
accent
#E24691
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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