#8A2F94#8A2F94

#8A2F94 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.0% C 0.174 H 323.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8A2F94
RGBrgb(138, 47, 148)
HSLhsl(294, 52%, 38%)
HSVhsv(294, 68%, 58%)
CMYKcmyk(6.8%, 68.2%, 0%, 42%)
CIE-LABlab(37.07, 52.09, -37.14)
CIE-LCHlch(37.07, 63.98, 324.51°)
OKLaboklab(48% 0.1403 -0.1034)
OKLCHoklch(48% 0.174 323.6)
XYZxyz(16.8426, 9.5754, 28.9723)
Luminance0.0957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F94 #39942F
analogous
#572F94 #8A2F94 #942F6B
triadic
#8A2F94 #948A2F #2F948A
tetradic
#8A2F94 #94572F #39942F #2F6B94
square
#8A2F94 #94572F #39942F #2F6B94
split-complementary
#8A2F94 #6B942F #2F9457
monochromatic
#331137 #5F2066 #8A2F94 #B53EC2 #C76DD1

Accessibility & contrast

On white

7.20
#8A2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F94
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F94#FFFFFF#000000##FFFFFF
##8A2F941.007.202.917.20
#FFFFFF7.201.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165097
Deuteranopia (green-blind)
#3F5B91
Tritanopia (blue-blind)
#8C3F5E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f94;
/* rgb */ color: rgb(138, 47, 148);
/* oklch */ color: oklch(48.0% 0.174 323.6);
Tailwind
colors: {
  custom: {
    50: '#af6fb4',
    500: '#8a2f94',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f94;
$custom-light: #af6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f94",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 294.059,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48,
    "c": 0.17429,
    "h": 323.6
  },
  "luminance": 0.09574
}

Semantic roles & 50–950 ramp

primary
#8A2F94
secondary
#6FB867
accent
#DB4D5B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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