#6F21AF#6F21AF

#6F21AF is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.206 H 303.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#6F21AF
RGBrgb(111, 33, 175)
HSLhsl(273, 68%, 41%)
HSVhsv(273, 81%, 69%)
CMYKcmyk(36.6%, 81.1%, 0%, 31.4%)
CIE-LABlab(33.05, 57.77, -60.11)
CIE-LCHlch(33.05, 83.37, 313.86°)
OKLaboklab(44.93% 0.1139 -0.1715)
OKLCHoklch(44.93% 0.206 303.6)
XYZxyz(14.8354, 7.5624, 41.2272)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F21AF #61AF21
analogous
#2821AF #6F21AF #AF21A8
triadic
#6F21AF #AF6F21 #21AF6F
tetradic
#6F21AF #AF2821 #61AF21 #21A8AF
square
#6F21AF #AF2821 #61AF21 #21A8AF
split-complementary
#6F21AF #A8AF21 #21AF28
monochromatic
#2E0E48 #4E177C #6F21AF #8F34D9 #AB68E3

Accessibility & contrast

On white

8.36
#6F21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6F21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F21AF
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F21AF#FFFFFF#000000##FFFFFF
##6F21AF1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#624869
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6f21af;
/* rgb */ color: rgb(111, 33, 175);
/* oklch */ color: oklch(44.9% 0.206 303.6);
Tailwind
colors: {
  custom: {
    50: '#9f67c8',
    500: '#6f21af',
    950: '#000000',
  },
}
SCSS
$custom: #6f21af;
$custom-light: #9f67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f21af",
  "rgb": {
    "r": 111,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 272.958,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44934,
    "c": 0.20592,
    "h": 303.6
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#6F21AF
secondary
#91C864
accent
#EB3D8B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6F21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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