#8041AF#8041AF

#8041AF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.172 H 307.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8041AF
RGBrgb(128, 65, 175)
HSLhsl(274, 46%, 47%)
HSVhsv(274, 63%, 69%)
CMYKcmyk(26.9%, 62.9%, 0%, 31.4%)
CIE-LABlab(40.35, 47.01, -48.18)
CIE-LCHlch(40.35, 67.32, 314.30°)
OKLaboklab(50.61% 0.1054 -0.1361)
OKLCHoklch(50.61% 0.172 307.8)
XYZxyz(18.5287, 11.4652, 41.7860)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041AF #70AF41
analogous
#4941AF #8041AF #AF41A7
triadic
#8041AF #AF8041 #41AF80
tetradic
#8041AF #AF4941 #70AF41 #41A7AF
square
#8041AF #AF4941 #70AF41 #41A7AF
split-complementary
#8041AF #A7AF41 #41AF49
monochromatic
#3F2056 #5F3082 #8041AF #9E67C6 #BA93D7

Accessibility & contrast

On white

6.38
#8041AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8041AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8041AF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8041AF#FFFFFF#000000##FFFFFF
##8041AF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025DB2
Deuteranopia (green-blind)
#2E60AC
Tritanopia (blue-blind)
#795772
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8041af;
/* rgb */ color: rgb(128, 65, 175);
/* oklch */ color: oklch(50.6% 0.172 307.8);
Tailwind
colors: {
  custom: {
    50: '#a879c7',
    500: '#8041af',
    950: '#000000',
  },
}
SCSS
$custom: #8041af;
$custom-light: #a879c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8041af",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 274.364,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50609,
    "c": 0.17211,
    "h": 307.8
  },
  "luminance": 0.11465
}

Semantic roles & 50–950 ramp

primary
#8041AF
secondary
#A2C289
accent
#D5528A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8041AF

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

Preview Lab → · Contrast checker → · Palette generator →

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