#8A74EF#8A74EF

#8A74EF is a light, vivid violet. Relative luminance 0.241; OKLCH L 63.8% C 0.178 H 288.5°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A74EF
RGBrgb(138, 116, 239)
HSLhsl(251, 79%, 70%)
HSVhsv(251, 51%, 94%)
CMYKcmyk(42.3%, 51.5%, 0%, 6.3%)
CIE-LABlab(56.21, 37.67, -59.36)
CIE-LCHlch(56.21, 70.30, 302.40°)
OKLaboklab(63.79% 0.0565 -0.1686)
OKLCHoklch(63.79% 0.178 288.5)
XYZxyz(32.3022, 24.1249, 84.5992)
Luminance0.2413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74EF #D9EF74
analogous
#749BEF #8A74EF #C874EF
triadic
#8A74EF #EF8A74 #74EF8A
tetradic
#8A74EF #EF749B #D9EF74 #74EFC8
square
#8A74EF #EF749B #D9EF74 #74EFC8
split-complementary
#8A74EF #EFC874 #9BEF74
monochromatic
#3918D1 #5C3DE9 #8A74EF #B8ABF5 #E6E2FC

Accessibility & contrast

On white

3.61
#8A74EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8A74EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74EF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74EF#FFFFFF#000000##000000
##8A74EF1.003.615.835.83
#FFFFFF3.611.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C89F3
Deuteranopia (green-blind)
#3D84EC
Tritanopia (blue-blind)
#6C8EA7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a74ef;
/* rgb */ color: rgb(138, 116, 239);
/* oklch */ color: oklch(63.8% 0.178 288.5);
Tailwind
colors: {
  custom: {
    50: '#b19cf5',
    500: '#8a74ef',
    950: '#000000',
  },
}
SCSS
$custom: #8a74ef;
$custom-light: #b19cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74ef",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 250.732,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63787,
    "c": 0.17786,
    "h": 288.5
  },
  "luminance": 0.24126
}

Semantic roles & 50–950 ramp

primary
#8A74EF
secondary
#EBF1CE
accent
#DC0AB6
background
#FBF9FF
surface
#F6F2FE
border
#D0CCD6
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A74EF

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

Preview Lab → · Contrast checker → · Palette generator →

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