#8A62B2#8A62B2

#8A62B2 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.1% C 0.126 H 305.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A62B2
RGBrgb(138, 98, 178)
HSLhsl(270, 34%, 54%)
HSVhsv(270, 45%, 70%)
CMYKcmyk(22.5%, 44.9%, 0%, 30.2%)
CIE-LABlab(48.70, 32.16, -36.59)
CIE-LCHlch(48.70, 48.72, 311.31°)
OKLaboklab(57.09% 0.0738 -0.1021)
OKLCHoklch(57.09% 0.126 305.9)
XYZxyz(22.8832, 17.3531, 44.2548)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62B2 #8AB262
analogous
#6262B2 #8A62B2 #B262B2
triadic
#8A62B2 #B28A62 #62B28A
tetradic
#8A62B2 #B26262 #8AB262 #62B2B2
square
#8A62B2 #B26262 #8AB262 #62B2B2
split-complementary
#8A62B2 #B2B262 #62B262
monochromatic
#4D3367 #6B4790 #8A62B2 #A98BC6 #C7B4DA

Accessibility & contrast

On white

4.70
#8A62B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A62B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A62B2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62B2#FFFFFF#000000##FFFFFF
##8A62B21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a62b2;
/* rgb */ color: rgb(138, 98, 178);
/* oklch */ color: oklch(57.1% 0.126 305.9);
Tailwind
colors: {
  custom: {
    50: '#ae8fc9',
    500: '#8a62b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a62b2;
$custom-light: #ae8fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62b2",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 270,
    "s": 34.188,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57087,
    "c": 0.12594,
    "h": 305.9
  },
  "luminance": 0.17353
}

Semantic roles & 50–950 ramp

primary
#8A62B2
secondary
#B8C9A7
accent
#CA5E94
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A62B2

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

Preview Lab → · Contrast checker → · Palette generator →

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