#7021AF#7021AF

#7021AF is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.206 H 304.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7021AF
RGBrgb(112, 33, 175)
HSLhsl(273, 68%, 41%)
HSVhsv(273, 81%, 69%)
CMYKcmyk(36%, 81.1%, 0%, 31.4%)
CIE-LABlab(33.20, 57.93, -59.88)
CIE-LCHlch(33.20, 83.31, 314.05°)
OKLaboklab(45.06% 0.1154 -0.1708)
OKLCHoklch(45.06% 0.206 304)
XYZxyz(14.9620, 7.6276, 41.2332)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7021AF #60AF21
analogous
#2921AF #7021AF #AF21A7
triadic
#7021AF #AF7021 #21AF70
tetradic
#7021AF #AF2921 #60AF21 #21A7AF
square
#7021AF #AF2921 #60AF21 #21A7AF
split-complementary
#7021AF #A7AF21 #21AF29
monochromatic
#2E0E48 #4F177C #7021AF #9034D9 #AC68E3

Accessibility & contrast

On white

8.31
#7021AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7021AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7021AF
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7021AF#FFFFFF#000000##FFFFFF
##7021AF1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7021af;
/* rgb */ color: rgb(112, 33, 175);
/* oklch */ color: oklch(45.1% 0.206 304.0);
Tailwind
colors: {
  custom: {
    50: '#9f67c8',
    500: '#7021af',
    950: '#000000',
  },
}
SCSS
$custom: #7021af;
$custom-light: #9f67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7021af",
  "rgb": {
    "r": 112,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 273.38,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45061,
    "c": 0.20612,
    "h": 304
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#7021AF
secondary
#90C864
accent
#EB3D8A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7021AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7021AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva