#802FAF#802FAF

#802FAF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.196 H 309.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#802FAF
RGBrgb(128, 47, 175)
HSLhsl(278, 58%, 44%)
HSVhsv(278, 73%, 69%)
CMYKcmyk(26.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(37.33, 55.41, -53.05)
CIE-LCHlch(37.33, 76.71, 316.25°)
OKLaboklab(48.44% 0.1254 -0.1503)
OKLCHoklch(48.44% 0.196 309.8)
XYZxyz(17.6549, 9.7177, 41.4948)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FAF #5EAF2F
analogous
#402FAF #802FAF #AF2F9E
triadic
#802FAF #AF802F #2FAF80
tetradic
#802FAF #AF402F #5EAF2F #2F9EAF
square
#802FAF #AF402F #5EAF2F #2F9EAF
split-complementary
#802FAF #9EAF2F #2FAF40
monochromatic
#39154F #5D227F #802FAF #9F4CCF #B97CDC

Accessibility & contrast

On white

7.13
#802FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#802FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FAF
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FAF#FFFFFF#000000##FFFFFF
##802FAF1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#1259AC
Tritanopia (blue-blind)
#794C6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802faf;
/* rgb */ color: rgb(128, 47, 175);
/* oklch */ color: oklch(48.4% 0.196 309.8);
Tailwind
colors: {
  custom: {
    50: '#a96fc8',
    500: '#802faf',
    950: '#000000',
  },
}
SCSS
$custom: #802faf;
$custom-light: #a96fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#802faf",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 277.969,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48442,
    "c": 0.19575,
    "h": 309.8
  },
  "luminance": 0.09717
}

Semantic roles & 50–950 ramp

primary
#802FAF
secondary
#92C475
accent
#E1477F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#802FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva