#8A74F2#8A74F2

#8A74F2 is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.0% C 0.182 H 288.2°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A74F2
RGBrgb(138, 116, 242)
HSLhsl(250, 83%, 70%)
HSVhsv(250, 52%, 95%)
CMYKcmyk(43%, 52.1%, 0%, 5.1%)
CIE-LABlab(56.39, 38.50, -60.74)
CIE-LCHlch(56.39, 71.92, 302.37°)
OKLaboklab(63.98% 0.0567 -0.1727)
OKLCHoklch(63.98% 0.182 288.2)
XYZxyz(32.7491, 24.3037, 86.9527)
Luminance0.2430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74F2 #DCF274
analogous
#749DF2 #8A74F2 #C974F2
triadic
#8A74F2 #F28A74 #74F28A
tetradic
#8A74F2 #F2749D #DCF274 #74F2C9
square
#8A74F2 #F2749D #DCF274 #74F2C9
split-complementary
#8A74F2 #F2C974 #9DF274
monochromatic
#3614D7 #5B3CED #8A74F2 #B9ACF7 #E7E3FC

Accessibility & contrast

On white

3.58
#8A74F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#8A74F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74F2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74F2#FFFFFF#000000##000000
##8A74F21.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#398AF6
Deuteranopia (green-blind)
#3984EF
Tritanopia (blue-blind)
#6B8FA8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a74f2;
/* rgb */ color: rgb(138, 116, 242);
/* oklch */ color: oklch(64.0% 0.182 288.2);
Tailwind
colors: {
  custom: {
    50: '#b29cf7',
    500: '#8a74f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a74f2;
$custom-light: #b29cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74f2",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 250.476,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.63977,
    "c": 0.18176,
    "h": 288.2
  },
  "luminance": 0.24305
}

Semantic roles & 50–950 ramp

primary
#8A74F2
secondary
#ECF2CF
accent
#DF06B9
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A74F2

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

Preview Lab → · Contrast checker → · Palette generator →

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