#8A62B1#8A62B1

#8A62B1 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.0% C 0.125 H 306.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A62B1
RGBrgb(138, 98, 177)
HSLhsl(270, 34%, 54%)
HSVhsv(270, 45%, 69%)
CMYKcmyk(22%, 44.6%, 0%, 30.6%)
CIE-LABlab(48.65, 31.92, -36.09)
CIE-LCHlch(48.65, 48.18, 311.49°)
OKLaboklab(57.03% 0.0736 -0.1006)
OKLCHoklch(57.03% 0.125 306.2)
XYZxyz(22.7831, 17.3131, 43.7280)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62B1 #89B162
analogous
#6362B1 #8A62B1 #B162B1
triadic
#8A62B1 #B18A62 #62B18A
tetradic
#8A62B1 #B16362 #89B162 #62B1B1
square
#8A62B1 #B16362 #89B162 #62B1B1
split-complementary
#8A62B1 #B1B162 #62B163
monochromatic
#4D3366 #6B478F #8A62B1 #A88BC5 #C7B4DA

Accessibility & contrast

On white

4.71
#8A62B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A62B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A62B1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62B1#FFFFFF#000000##FFFFFF
##8A62B11.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F72B4
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#846F81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a62b1;
/* rgb */ color: rgb(138, 98, 177);
/* oklch */ color: oklch(57.0% 0.125 306.2);
Tailwind
colors: {
  custom: {
    50: '#ae8fc8',
    500: '#8a62b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a62b1;
$custom-light: #ae8fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62b1",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 177
  },
  "hsl": {
    "h": 270.38,
    "s": 33.617,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57034,
    "c": 0.12466,
    "h": 306.2
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#8A62B1
secondary
#B7C8A7
accent
#CA5E93
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A62B1

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

Preview Lab → · Contrast checker → · Palette generator →

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