#6B21BD#6B21BD

#6B21BD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.7% C 0.219 H 298.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#6B21BD
RGBrgb(107, 33, 189)
HSLhsl(268, 70%, 44%)
HSVhsv(268, 83%, 74%)
CMYKcmyk(43.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(33.75, 60.44, -67.31)
CIE-LCHlch(33.75, 90.46, 311.92°)
OKLaboklab(45.68% 0.1036 -0.1928)
OKLCHoklch(45.68% 0.219 298.2)
XYZxyz(15.7902, 7.8874, 48.8247)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B21BD #73BD21
analogous
#2125BD #6B21BD #B921BD
triadic
#6B21BD #BD6B21 #21BD6B
tetradic
#6B21BD #BD2125 #73BD21 #21BDB9
square
#6B21BD #BD2125 #73BD21 #21BDB9
split-complementary
#6B21BD #BDB921 #25BD21
monochromatic
#300F55 #4E1889 #6B21BD #8A3EDD #A972E6

Accessibility & contrast

On white

8.15
#6B21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B21BD
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B21BD#FFFFFF#000000##FFFFFF
##6B21BD1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#564F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b21bd;
/* rgb */ color: rgb(107, 33, 189);
/* oklch */ color: oklch(45.7% 0.219 298.2);
Tailwind
colors: {
  custom: {
    50: '#9e67d2',
    500: '#6b21bd',
    950: '#000000',
  },
}
SCSS
$custom: #6b21bd;
$custom-light: #9e67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b21bd",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 268.462,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45676,
    "c": 0.21884,
    "h": 298.2
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#6B21BD
secondary
#9FCD6D
accent
#ED3B98
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6B21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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