#8A2682#8A2682

#8A2682 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.171 H 331.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8A2682
RGBrgb(138, 38, 130)
HSLhsl(305, 57%, 35%)
HSVhsv(305, 72%, 54%)
CMYKcmyk(0%, 72.5%, 5.8%, 45.9%)
CIE-LABlab(34.81, 52.42, -29.65)
CIE-LCHlch(34.81, 60.22, 330.51°)
OKLaboklab(46.04% 0.1498 -0.0816)
OKLCHoklch(46.04% 0.171 331.4)
XYZxyz(15.2036, 8.4024, 21.9358)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2682 #268A2E
analogous
#60268A #8A2682 #8A2650
triadic
#8A2682 #828A26 #26828A
tetradic
#8A2682 #8A6026 #268A2E #26508A
square
#8A2682 #8A6026 #268A2E #26508A
split-complementary
#8A2682 #508A26 #268A60
monochromatic
#2A0C28 #5A1955 #8A2682 #BA33AF #D159C8

Accessibility & contrast

On white

7.84
#8A2682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A2682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2682
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2682#FFFFFF#000000##FFFFFF
##8A26821.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4985
Deuteranopia (green-blind)
#455780
Tritanopia (blue-blind)
#903151
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2682;
/* rgb */ color: rgb(138, 38, 130);
/* oklch */ color: oklch(46.0% 0.171 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6aa6',
    500: '#8a2682',
    950: '#000000',
  },
}
SCSS
$custom: #8a2682;
$custom-light: #af6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2682",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 304.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46043,
    "c": 0.17053,
    "h": 331.4
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#8A2682
secondary
#56B65D
accent
#E05448
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2682

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

Preview Lab → · Contrast checker → · Palette generator →

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