#6D2BAB#6D2BAB

#6D2BAB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.192 H 302.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6D2BAB
RGBrgb(109, 43, 171)
HSLhsl(271, 60%, 42%)
HSVhsv(271, 75%, 67%)
CMYKcmyk(36.3%, 74.9%, 0%, 32.9%)
CIE-LABlab(33.81, 52.57, -56.49)
CIE-LCHlch(33.81, 77.17, 312.94°)
OKLaboklab(45.31% 0.1037 -0.161)
OKLCHoklch(45.31% 0.192 302.8)
XYZxyz(14.5195, 7.9192, 39.2838)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2BAB #69AB2B
analogous
#2D2BAB #6D2BAB #AB2BA9
triadic
#6D2BAB #AB6D2B #2BAB6D
tetradic
#6D2BAB #AB2D2B #69AB2B #2BA9AB
square
#6D2BAB #AB2D2B #69AB2B #2BA9AB
split-complementary
#6D2BAB #A9AB2B #2BAB2D
monochromatic
#2F1249 #4E1F7A #6D2BAB #8C43D0 #AA74DC

Accessibility & contrast

On white

8.13
#6D2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6D2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D2BAB
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D2BAB#FFFFFF#000000##FFFFFF
##6D2BAB1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#604B69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6d2bab;
/* rgb */ color: rgb(109, 43, 171);
/* oklch */ color: oklch(45.3% 0.192 302.8);
Tailwind
colors: {
  custom: {
    50: '#9c6bc5',
    500: '#6d2bab',
    950: '#000000',
  },
}
SCSS
$custom: #6d2bab;
$custom-light: #9c6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2bab",
  "rgb": {
    "r": 109,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 270.938,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45305,
    "c": 0.19152,
    "h": 302.8
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#6D2BAB
secondary
#98C46E
accent
#E34591
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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