#8A62F2#8A62F2

#8A62F2 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.1% C 0.206 H 291.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A62F2
RGBrgb(138, 98, 242)
HSLhsl(257, 85%, 67%)
HSVhsv(257, 60%, 95%)
CMYKcmyk(43%, 59.5%, 0%, 5.1%)
CIE-LABlab(52.45, 48.65, -67.09)
CIE-LCHlch(52.45, 82.87, 305.95°)
OKLaboklab(61.07% 0.0771 -0.1914)
OKLCHoklch(61.07% 0.206 291.9)
XYZxyz(30.8715, 20.5485, 86.3269)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A62F2 #CAF262
analogous
#6282F2 #8A62F2 #D262F2
triadic
#8A62F2 #F28A62 #62F28A
tetradic
#8A62F2 #F26282 #CAF262 #62F2D2
square
#8A62F2 #F26282 #CAF262 #62F2D2
split-complementary
#8A62F2 #F2D262 #82F262
monochromatic
#4411C9 #6029ED #8A62F2 #B49BF7 #DED3FB

Accessibility & contrast

On white

4.11
#8A62F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A62F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A62F2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A62F2#FFFFFF#000000##000000
##8A62F21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#6C82A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a62f2;
/* rgb */ color: rgb(138, 98, 242);
/* oklch */ color: oklch(61.1% 0.206 291.9);
Tailwind
colors: {
  custom: {
    50: '#b390f7',
    500: '#8a62f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a62f2;
$custom-light: #b390f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a62f2",
  "rgb": {
    "r": 138,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 256.667,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.20633,
    "h": 291.9
  },
  "luminance": 0.20549
}

Semantic roles & 50–950 ramp

primary
#8A62F2
secondary
#E2EFC1
accent
#E104A4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120D17
muted
#817D85

Preview Lab

Preview with #8A62F2

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

Preview Lab → · Contrast checker → · Palette generator →

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