#8A7FE5#8A7FE5

#8A7FE5 is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.1% C 0.149 H 286.4°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A7FE5
RGBrgb(138, 127, 229)
HSLhsl(246, 66%, 70%)
HSVhsv(246, 45%, 90%)
CMYKcmyk(39.7%, 44.5%, 0%, 10.2%)
CIE-LABlab(58.26, 28.50, -50.52)
CIE-LCHlch(58.26, 58.00, 299.43°)
OKLaboklab(65.15% 0.0421 -0.1427)
OKLCHoklch(65.15% 0.149 286.4)
XYZxyz(32.2095, 26.2380, 77.4809)
Luminance0.2624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FE5 #DAE57F
analogous
#7FA7E5 #8A7FE5 #BD7FE5
triadic
#8A7FE5 #E58A7F #7FE58A
tetradic
#8A7FE5 #E57FA7 #DAE57F #7FE5BD
square
#8A7FE5 #E57FA7 #DAE57F #7FE5BD
split-complementary
#8A7FE5 #E5BD7F #A7E57F
monochromatic
#3827C2 #5C4CDB #8A7FE5 #B8B2EF #E7E5FA

Accessibility & contrast

On white

3.36
#8A7FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#8A7FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FE5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FE5#FFFFFF#000000##000000
##8A7FE51.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8FE9
Deuteranopia (green-blind)
#5889E3
Tritanopia (blue-blind)
#7093A7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7fe5;
/* rgb */ color: rgb(138, 127, 229);
/* oklch */ color: oklch(65.1% 0.149 286.4);
Tailwind
colors: {
  custom: {
    50: '#b0a4ee',
    500: '#8a7fe5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fe5;
$custom-light: #b0a4ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fe5",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 229
  },
  "hsl": {
    "h": 246.471,
    "s": 66.234,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65146,
    "c": 0.14875,
    "h": 286.4
  },
  "luminance": 0.26239
}

Semantic roles & 50–950 ramp

primary
#8A7FE5
secondary
#EBEED1
accent
#CE17BA
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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