#6B2BAD#6B2BAD

#6B2BAD is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.193 H 301.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6B2BAD
RGBrgb(107, 43, 173)
HSLhsl(270, 60%, 42%)
HSVhsv(270, 75%, 68%)
CMYKcmyk(38.2%, 75.1%, 0%, 32.2%)
CIE-LABlab(33.71, 52.69, -57.87)
CIE-LCHlch(33.71, 78.26, 312.32°)
OKLaboklab(45.23% 0.1003 -0.1651)
OKLCHoklch(45.23% 0.193 301.3)
XYZxyz(14.4683, 7.8706, 40.2840)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2BAD #6DAD2B
analogous
#2B2CAD #6B2BAD #AC2BAD
triadic
#6B2BAD #AD6B2B #2BAD6B
tetradic
#6B2BAD #AD2B2C #6DAD2B #2BADAC
square
#6B2BAD #AD2B2C #6DAD2B #2BADAC
split-complementary
#6B2BAD #ADAC2B #2CAD2B
monochromatic
#2E134B #4D1F7C #6B2BAD #8A45D1 #A876DD

Accessibility & contrast

On white

8.16
#6B2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2BAD
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2BAD#FFFFFF#000000##FFFFFF
##6B2BAD1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#5C4C6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b2bad;
/* rgb */ color: rgb(107, 43, 173);
/* oklch */ color: oklch(45.2% 0.193 301.3);
Tailwind
colors: {
  custom: {
    50: '#9b6bc6',
    500: '#6b2bad',
    950: '#000000',
  },
}
SCSS
$custom: #6b2bad;
$custom-light: #9b6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2bad",
  "rgb": {
    "r": 107,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 269.538,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45226,
    "c": 0.19324,
    "h": 301.3
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#6B2BAD
secondary
#9BC46F
accent
#E34495
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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