#6B2BA8#6B2BA8

#6B2BA8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.188 H 302.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6B2BA8
RGBrgb(107, 43, 168)
HSLhsl(271, 59%, 41%)
HSVhsv(271, 74%, 66%)
CMYKcmyk(36.3%, 74.4%, 0%, 34.1%)
CIE-LABlab(33.31, 51.48, -55.53)
CIE-LCHlch(33.31, 75.72, 312.83°)
OKLaboklab(44.82% 0.1014 -0.1583)
OKLCHoklch(44.82% 0.188 302.7)
XYZxyz(13.9935, 7.6807, 37.7835)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2BA8 #68A82B
analogous
#2D2BA8 #6B2BA8 #A82BA7
triadic
#6B2BA8 #A86B2B #2BA86B
tetradic
#6B2BA8 #A82D2B #68A82B #2BA7A8
square
#6B2BA8 #A82D2B #68A82B #2BA7A8
split-complementary
#6B2BA8 #A7A82B #2BA82D
monochromatic
#2D1247 #4C1F77 #6B2BA8 #8A42CF #A872DB

Accessibility & contrast

On white

8.28
#6B2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6B2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2BA8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2BA8#FFFFFF#000000##FFFFFF
##6B2BA81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#5E4A67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b2ba8;
/* rgb */ color: rgb(107, 43, 168);
/* oklch */ color: oklch(44.8% 0.188 302.7);
Tailwind
colors: {
  custom: {
    50: '#9b6bc3',
    500: '#6b2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ba8;
$custom-light: #9b6bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ba8",
  "rgb": {
    "r": 107,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 270.72,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44817,
    "c": 0.188,
    "h": 302.7
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#6B2BA8
secondary
#96C26C
accent
#E24592
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6B2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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