#8A2BAF#8A2BAF

#8A2BAF is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.203 H 314.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8A2BAF
RGBrgb(138, 43, 175)
HSLhsl(283, 61%, 43%)
HSVhsv(283, 75%, 69%)
CMYKcmyk(21.1%, 75.4%, 0%, 31.4%)
CIE-LABlab(38.25, 58.95, -51.50)
CIE-LCHlch(38.25, 78.28, 318.86°)
OKLaboklab(49.39% 0.1424 -0.1454)
OKLCHoklch(49.39% 0.203 314.4)
XYZxyz(19.0817, 10.2268, 41.5179)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BAF #50AF2B
analogous
#482BAF #8A2BAF #AF2B92
triadic
#8A2BAF #AF8A2B #2BAF8A
tetradic
#8A2BAF #AF482B #50AF2B #2B92AF
square
#8A2BAF #AF482B #50AF2B #2B92AF
split-complementary
#8A2BAF #92AF2B #2BAF48
monochromatic
#3D134D #631F7E #8A2BAF #AA46D1 #C177DE

Accessibility & contrast

On white

6.90
#8A2BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A2BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BAF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BAF#FFFFFF#000000##FFFFFF
##8A2BAF1.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#235CAC
Tritanopia (blue-blind)
#87496B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2baf;
/* rgb */ color: rgb(138, 43, 175);
/* oklch */ color: oklch(49.4% 0.203 314.4);
Tailwind
colors: {
  custom: {
    50: '#b06fc8',
    500: '#8a2baf',
    950: '#000000',
  },
}
SCSS
$custom: #8a2baf;
$custom-light: #b06fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2baf",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 283.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49392,
    "c": 0.20347,
    "h": 314.4
  },
  "luminance": 0.10226
}

Semantic roles & 50–950 ramp

primary
#8A2BAF
secondary
#88C570
accent
#E44471
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BAF

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

Preview Lab → · Contrast checker → · Palette generator →

#8A2BAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva