#8A307F#8A307F

#8A307F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.155 H 332.9°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8A307F
RGBrgb(138, 48, 127)
HSLhsl(307, 48%, 36%)
HSVhsv(307, 65%, 54%)
CMYKcmyk(0%, 65.2%, 8%, 45.9%)
CIE-LABlab(36.08, 47.91, -25.78)
CIE-LCHlch(36.08, 54.40, 331.72°)
OKLaboklab(46.92% 0.1379 -0.0705)
OKLCHoklch(46.92% 0.155 332.9)
XYZxyz(15.3690, 9.0507, 21.0120)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A307F #308A3B
analogous
#68308A #8A307F #8A3052
triadic
#8A307F #7F8A30 #307F8A
tetradic
#8A307F #8A6830 #308A3B #30528A
square
#8A307F #8A6830 #308A3B #30528A
split-complementary
#8A307F #528A30 #308A68
monochromatic
#2F102B #5D2055 #8A307F #B740A9 #CB69BF

Accessibility & contrast

On white

7.47
#8A307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A307F
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A307F#FFFFFF#000000##FFFFFF
##8A307F1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4D81
Deuteranopia (green-blind)
#4B5A7D
Tritanopia (blue-blind)
#903853
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a307f;
/* rgb */ color: rgb(138, 48, 127);
/* oklch */ color: oklch(46.9% 0.155 332.9);
Tailwind
colors: {
  custom: {
    50: '#af6fa4',
    500: '#8a307f',
    950: '#000000',
  },
}
SCSS
$custom: #8a307f;
$custom-light: #af6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a307f",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 307.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46915,
    "c": 0.15484,
    "h": 332.9
  },
  "luminance": 0.09049
}

Semantic roles & 50–950 ramp

primary
#8A307F
secondary
#64B26D
accent
#D86050
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A307F

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

Preview Lab → · Contrast checker → · Palette generator →

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