#6F21AC#6F21AC

#6F21AC is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.7% C 0.203 H 304.4°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#6F21AC
RGBrgb(111, 33, 172)
HSLhsl(274, 68%, 40%)
HSVhsv(274, 81%, 67%)
CMYKcmyk(35.5%, 80.8%, 0%, 32.5%)
CIE-LABlab(32.80, 57.09, -58.73)
CIE-LCHlch(32.80, 81.90, 314.19°)
OKLaboklab(44.68% 0.1148 -0.1675)
OKLCHoklch(44.68% 0.203 304.4)
XYZxyz(14.5441, 7.4458, 39.6927)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F21AC #5EAC21
analogous
#2921AC #6F21AC #AC21A3
triadic
#6F21AC #AC6F21 #21AC6F
tetradic
#6F21AC #AC2921 #5EAC21 #21A3AC
square
#6F21AC #AC2921 #5EAC21 #21A3AC
split-complementary
#6F21AC #A3AC21 #21AC29
monochromatic
#2D0D45 #4E1779 #6F21AC #8F32D8 #AB66E2

Accessibility & contrast

On white

8.44
#6F21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6F21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F21AC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F21AC#FFFFFF#000000##FFFFFF
##6F21AC1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#634767
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6f21ac;
/* rgb */ color: rgb(111, 33, 172);
/* oklch */ color: oklch(44.7% 0.203 304.4);
Tailwind
colors: {
  custom: {
    50: '#9e67c6',
    500: '#6f21ac',
    950: '#000000',
  },
}
SCSS
$custom: #6f21ac;
$custom-light: #9e67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6f21ac",
  "rgb": {
    "r": 111,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 273.669,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44679,
    "c": 0.20304,
    "h": 304.4
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#6F21AC
secondary
#8EC762
accent
#EB3D89
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6F21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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