#6A21BD#6A21BD

#6A21BD is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.6% C 0.219 H 297.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#6A21BD
RGBrgb(106, 33, 189)
HSLhsl(268, 70%, 44%)
HSVhsv(268, 83%, 74%)
CMYKcmyk(43.9%, 82.5%, 0%, 25.9%)
CIE-LABlab(33.62, 60.30, -67.53)
CIE-LCHlch(33.62, 90.53, 311.76°)
OKLaboklab(45.56% 0.1021 -0.1935)
OKLCHoklch(45.56% 0.219 297.8)
XYZxyz(15.6706, 7.8257, 48.8191)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A21BD #74BD21
analogous
#2126BD #6A21BD #B821BD
triadic
#6A21BD #BD6A21 #21BD6A
tetradic
#6A21BD #BD2126 #74BD21 #21BDB8
square
#6A21BD #BD2126 #74BD21 #21BDB8
split-complementary
#6A21BD #BDB821 #26BD21
monochromatic
#300F55 #4D1889 #6A21BD #883EDD #A872E6

Accessibility & contrast

On white

8.19
#6A21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A21BD
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A21BD#FFFFFF#000000##FFFFFF
##6A21BD1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#544F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a21bd;
/* rgb */ color: rgb(106, 33, 189);
/* oklch */ color: oklch(45.6% 0.219 297.8);
Tailwind
colors: {
  custom: {
    50: '#9d67d2',
    500: '#6a21bd',
    950: '#000000',
  },
}
SCSS
$custom: #6a21bd;
$custom-light: #9d67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a21bd",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 268.077,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.21873,
    "h": 297.8
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#6A21BD
secondary
#A0CD6D
accent
#ED3B9A
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6A21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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