#8A62B4#8A62B4

#8A62B4 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.2% C 0.129 H 305.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A62B4
RGBrgb(138, 98, 180)
HSLhsl(269, 35%, 55%)
HSVhsv(269, 46%, 71%)
CMYKcmyk(23.3%, 45.6%, 0%, 29.4%)
CIE-LABlab(48.80, 32.64, -37.60)
CIE-LCHlch(48.80, 49.79, 310.96°)
OKLaboklab(57.19% 0.0741 -0.105)
OKLCHoklch(57.19% 0.129 305.2)
XYZxyz(23.0854, 17.4341, 45.3201)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62B4 #8CB462
analogous
#6263B4 #8A62B4 #B362B4
triadic
#8A62B4 #B48A62 #62B48A
tetradic
#8A62B4 #B46263 #8CB462 #62B4B3
square
#8A62B4 #B46263 #8CB462 #62B4B3
split-complementary
#8A62B4 #B4B362 #63B462
monochromatic
#4D3269 #6B4693 #8A62B4 #A98BC8 #C8B5DC

Accessibility & contrast

On white

4.68
#8A62B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8A62B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A62B4
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62B4#FFFFFF#000000##FFFFFF
##8A62B41.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D73B7
Deuteranopia (green-blind)
#5774B2
Tritanopia (blue-blind)
#837082
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a62b4;
/* rgb */ color: rgb(138, 98, 180);
/* oklch */ color: oklch(57.2% 0.129 305.2);
Tailwind
colors: {
  custom: {
    50: '#ae8fcb',
    500: '#8a62b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a62b4;
$custom-light: #ae8fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62b4",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 180
  },
  "hsl": {
    "h": 269.268,
    "s": 35.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57195,
    "c": 0.1285,
    "h": 305.2
  },
  "luminance": 0.17434
}

Semantic roles & 50–950 ramp

primary
#8A62B4
secondary
#B9CAA8
accent
#CB5C95
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A62B4

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

Preview Lab → · Contrast checker → · Palette generator →

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