#8062F8#8062F8

#8062F8 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.6% C 0.214 H 287.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8062F8
RGBrgb(128, 98, 248)
HSLhsl(252, 91%, 68%)
HSVhsv(252, 60%, 97%)
CMYKcmyk(48.4%, 60.5%, 0%, 2.7%)
CIE-LABlab(51.95, 48.33, -71.29)
CIE-LCHlch(51.95, 86.12, 304.13°)
OKLaboklab(60.61% 0.064 -0.204)
OKLCHoklch(60.61% 0.214 287.4)
XYZxyz(30.2081, 20.1005, 91.0768)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8062F8 #DAF862
analogous
#628FF8 #8062F8 #CB62F8
triadic
#8062F8 #F88062 #62F880
tetradic
#8062F8 #F8628F #DAF862 #62F8CB
square
#8062F8 #F8628F #DAF862 #62F8CB
split-complementary
#8062F8 #F8CB62 #8FF862
monochromatic
#320AD6 #5127F5 #8062F8 #AF9DFB #DFD7FD

Accessibility & contrast

On white

4.18
#8062F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8062F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8062F8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8062F8#FFFFFF#000000##000000
##8062F81.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFD
Deuteranopia (green-blind)
#0078F5
Tritanopia (blue-blind)
#5685A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8062f8;
/* rgb */ color: rgb(128, 98, 248);
/* oklch */ color: oklch(60.6% 0.214 287.4);
Tailwind
colors: {
  custom: {
    50: '#ad90fb',
    500: '#8062f8',
    950: '#000000',
  },
}
SCSS
$custom: #8062f8;
$custom-light: #ad90fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8062f8",
  "rgb": {
    "r": 128,
    "g": 98,
    "b": 248
  },
  "hsl": {
    "h": 252,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60615,
    "c": 0.21385,
    "h": 287.4
  },
  "luminance": 0.20102
}

Semantic roles & 50–950 ramp

primary
#8062F8
secondary
#E9F2C4
accent
#E600B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110D18
muted
#807D86

Preview Lab

Preview with #8062F8

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

Preview Lab → · Contrast checker → · Palette generator →

#8062F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva