#8A74FB#8A74FB

#8A74FB is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.6% C 0.193 H 287.2°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A74FB
RGBrgb(138, 116, 251)
HSLhsl(250, 94%, 72%)
HSVhsv(250, 54%, 98%)
CMYKcmyk(45%, 53.8%, 0%, 1.6%)
CIE-LABlab(56.94, 41.02, -64.85)
CIE-LCHlch(56.94, 76.74, 302.31°)
OKLaboklab(64.56% 0.0571 -0.1848)
OKLCHoklch(64.56% 0.193 287.2)
XYZxyz(34.1342, 24.8577, 94.2476)
Luminance0.2486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74FB #E5FB74
analogous
#74A2FB #8A74FB #CE74FB
triadic
#8A74FB #FB8A74 #74FB8A
tetradic
#8A74FB #FB74A2 #E5FB74 #74FBCE
square
#8A74FB #FB74A2 #E5FB74 #74FBCE
split-complementary
#8A74FB #FBCE74 #A2FB74
monochromatic
#2C07EE #5839F9 #8A74FB #BCAFFD #E6E1FE

Accessibility & contrast

On white

3.52
#8A74FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A74FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74FB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74FB#FFFFFF#000000##000000
##8A74FB1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C8CFF
Deuteranopia (green-blind)
#2B85F8
Tritanopia (blue-blind)
#6691AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a74fb;
/* rgb */ color: rgb(138, 116, 251);
/* oklch */ color: oklch(64.6% 0.193 287.2);
Tailwind
colors: {
  custom: {
    50: '#b39cfd',
    500: '#8a74fb',
    950: '#000000',
  },
}
SCSS
$custom: #8a74fb;
$custom-light: #b39cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74fb",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 251
  },
  "hsl": {
    "h": 249.778,
    "s": 94.406,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64558,
    "c": 0.19339,
    "h": 287.2
  },
  "luminance": 0.24859
}

Semantic roles & 50–950 ramp

primary
#8A74FB
secondary
#F1F6D4
accent
#E600C0
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #8A74FB

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

Preview Lab → · Contrast checker → · Palette generator →

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