#8A62BB#8A62BB

#8A62BB is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.6% C 0.137 H 303.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A62BB
RGBrgb(138, 98, 187)
HSLhsl(267, 40%, 56%)
HSVhsv(267, 48%, 73%)
CMYKcmyk(26.2%, 47.6%, 0%, 26.7%)
CIE-LABlab(49.16, 34.35, -41.09)
CIE-LCHlch(49.16, 53.56, 309.89°)
OKLaboklab(57.58% 0.0751 -0.1152)
OKLCHoklch(57.58% 0.137 303.1)
XYZxyz(23.8166, 17.7265, 49.1709)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62BB #93BB62
analogous
#6266BB #8A62BB #B662BB
triadic
#8A62BB #BB8A62 #62BB8A
tetradic
#8A62BB #BB6266 #93BB62 #62BBB6
square
#8A62BB #BB6266 #93BB62 #62BBB6
split-complementary
#8A62BB #BBB662 #66BB62
monochromatic
#4E3171 #6B449C #8A62BB #AA8DCD #CAB7E0

Accessibility & contrast

On white

4.62
#8A62BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8A62BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A62BB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62BB#FFFFFF#000000##FFFFFF
##8A62BB1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4874BE
Deuteranopia (green-blind)
#5275B9
Tritanopia (blue-blind)
#817286
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a62bb;
/* rgb */ color: rgb(138, 98, 187);
/* oklch */ color: oklch(57.6% 0.137 303.1);
Tailwind
colors: {
  custom: {
    50: '#ae8fd0',
    500: '#8a62bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a62bb;
$custom-light: #ae8fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62bb",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 187
  },
  "hsl": {
    "h": 266.966,
    "s": 39.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57583,
    "c": 0.13747,
    "h": 303.1
  },
  "luminance": 0.17726
}

Semantic roles & 50–950 ramp

primary
#8A62BB
secondary
#BECFAA
accent
#CF589A
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #8A62BB

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

Preview Lab → · Contrast checker → · Palette generator →

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