#8A2FE2#8A2FE2

#8A2FE2 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.7% C 0.247 H 301.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A2FE2
RGBrgb(138, 47, 226)
HSLhsl(271, 76%, 54%)
HSVhsv(271, 79%, 89%)
CMYKcmyk(38.9%, 79.2%, 0%, 11.4%)
CIE-LABlab(42.65, 68.49, -74.00)
CIE-LCHlch(42.65, 100.83, 312.78°)
OKLaboklab(53.7% 0.1276 -0.2115)
OKLCHoklch(53.7% 0.247 301.1)
XYZxyz(25.2218, 12.9271, 73.1031)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FE2 #87E22F
analogous
#302FE2 #8A2FE2 #E22FE0
triadic
#8A2FE2 #E28A2F #2FE28A
tetradic
#8A2FE2 #E2302F #87E22F #2FE0E2
square
#8A2FE2 #E2302F #87E22F #2FE0E2
split-complementary
#8A2FE2 #E0E22F #2FE230
monochromatic
#4C1284 #6B1ABA #8A2FE2 #A865E9 #C69AF1

Accessibility & contrast

On white

5.86
#8A2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A2FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FE2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FE2#FFFFFF#000000##FFFFFF
##8A2FE21.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0064DF
Tritanopia (blue-blind)
#766189
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a2fe2;
/* rgb */ color: rgb(138, 47, 226);
/* oklch */ color: oklch(53.7% 0.247 301.1);
Tailwind
colors: {
  custom: {
    50: '#b473ec',
    500: '#8a2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fe2;
$custom-light: #b473ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fe2",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 270.503,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53699,
    "c": 0.24699,
    "h": 301.1
  },
  "luminance": 0.12927
}

Semantic roles & 50–950 ramp

primary
#8A2FE2
secondary
#B6DD90
accent
#F23692
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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