#802BAF#802BAF

#802BAF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.200 H 310.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#802BAF
RGBrgb(128, 43, 175)
HSLhsl(279, 61%, 43%)
HSVhsv(279, 75%, 69%)
CMYKcmyk(26.9%, 75.4%, 0%, 31.4%)
CIE-LABlab(36.77, 57.02, -53.97)
CIE-LCHlch(36.77, 78.51, 316.58°)
OKLaboklab(48.04% 0.1293 -0.1529)
OKLCHoklch(48.04% 0.2 310.2)
XYZxyz(17.5023, 9.4125, 41.4439)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BAF #5AAF2B
analogous
#3E2BAF #802BAF #AF2B9C
triadic
#802BAF #AF802B #2BAF80
tetradic
#802BAF #AF3E2B #5AAF2B #2B9CAF
square
#802BAF #AF3E2B #5AAF2B #2B9CAF
split-complementary
#802BAF #9CAF2B #2BAF3E
monochromatic
#38134D #5C1F7E #802BAF #A046D1 #B977DE

Accessibility & contrast

On white

7.29
#802BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#802BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BAF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BAF#FFFFFF#000000##FFFFFF
##802BAF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0858AC
Tritanopia (blue-blind)
#794A6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802baf;
/* rgb */ color: rgb(128, 43, 175);
/* oklch */ color: oklch(48.0% 0.200 310.2);
Tailwind
colors: {
  custom: {
    50: '#a96dc8',
    500: '#802baf',
    950: '#000000',
  },
}
SCSS
$custom: #802baf;
$custom-light: #a96dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#802baf",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 278.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48043,
    "c": 0.20025,
    "h": 310.2
  },
  "luminance": 0.09412
}

Semantic roles & 50–950 ramp

primary
#802BAF
secondary
#8FC570
accent
#E4447D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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