#8A2FC8#8A2FC8

#8A2FC8 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.6% C 0.222 H 307.1°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A2FC8
RGBrgb(138, 47, 200)
HSLhsl(276, 62%, 48%)
HSVhsv(276, 77%, 78%)
CMYKcmyk(31%, 76.5%, 0%, 21.6%)
CIE-LABlab(40.58, 62.73, -62.41)
CIE-LCHlch(40.58, 88.49, 315.15°)
OKLaboklab(51.61% 0.1342 -0.1775)
OKLCHoklch(51.61% 0.222 307.1)
XYZxyz(21.9208, 11.6067, 55.7179)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FC8 #6DC82F
analogous
#3D2FC8 #8A2FC8 #C82FB9
triadic
#8A2FC8 #C88A2F #2FC88A
tetradic
#8A2FC8 #C83D2F #6DC82F #2FB9C8
square
#8A2FC8 #C83D2F #6DC82F #2FB9C8
split-complementary
#8A2FC8 #B9C82F #2FC83D
monochromatic
#461865 #682396 #8A2FC8 #A65CD9 #C18DE4

Accessibility & contrast

On white

6.32
#8A2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A2FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FC8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FC8#FFFFFF#000000##FFFFFF
##8A2FC81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#7F557B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a2fc8;
/* rgb */ color: rgb(138, 47, 200);
/* oklch */ color: oklch(51.6% 0.222 307.1);
Tailwind
colors: {
  custom: {
    50: '#b271da',
    500: '#8a2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fc8;
$custom-light: #b271da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fc8",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 275.686,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.22248,
    "h": 307.1
  },
  "luminance": 0.11606
}

Semantic roles & 50–950 ramp

primary
#8A2FC8
secondary
#A2CF84
accent
#E54385
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8A2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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