#8A74E2#8A74E2

#8A74E2 is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.0% C 0.161 H 290.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A74E2
RGBrgb(138, 116, 226)
HSLhsl(252, 65%, 67%)
HSVhsv(252, 49%, 89%)
CMYKcmyk(38.9%, 48.7%, 0%, 11.4%)
CIE-LABlab(55.47, 34.09, -53.29)
CIE-LCHlch(55.47, 63.26, 302.60°)
OKLaboklab(62.99% 0.0555 -0.1508)
OKLCHoklch(62.99% 0.161 290.2)
XYZxyz(30.4504, 23.3842, 74.8460)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74E2 #CCE274
analogous
#7495E2 #8A74E2 #C174E2
triadic
#8A74E2 #E28A74 #74E28A
tetradic
#8A74E2 #E27495 #CCE274 #74E2C1
square
#8A74E2 #E27495 #CCE274 #74E2C1
split-complementary
#8A74E2 #E2C174 #95E274
monochromatic
#4326B6 #5F41D7 #8A74E2 #B5A7ED #DFD9F7

Accessibility & contrast

On white

3.70
#8A74E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8A74E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74E2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74E2#FFFFFF#000000##000000
##8A74E21.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4987E6
Deuteranopia (green-blind)
#4B82DF
Tritanopia (blue-blind)
#728AA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a74e2;
/* rgb */ color: rgb(138, 116, 226);
/* oklch */ color: oklch(63.0% 0.161 290.2);
Tailwind
colors: {
  custom: {
    50: '#b09cec',
    500: '#8a74e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a74e2;
$custom-light: #b09cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74e2",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 226
  },
  "hsl": {
    "h": 252,
    "s": 65.476,
    "l": 67.059
  },
  "oklch": {
    "l": 0.62988,
    "c": 0.16071,
    "h": 290.2
  },
  "luminance": 0.23385
}

Semantic roles & 50–950 ramp

primary
#8A74E2
secondary
#E3EAC7
accent
#CD18A9
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A74E2

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

Preview Lab → · Contrast checker → · Palette generator →

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