#8A74DB#8A74DB

#8A74DB is a light, vivid violet. Relative luminance 0.230; OKLCH L 62.6% C 0.151 H 291.2°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A74DB
RGBrgb(138, 116, 219)
HSLhsl(253, 59%, 66%)
HSVhsv(253, 47%, 86%)
CMYKcmyk(37%, 47%, 0%, 14.1%)
CIE-LABlab(55.08, 32.19, -49.97)
CIE-LCHlch(55.08, 59.44, 302.78°)
OKLaboklab(62.57% 0.0548 -0.1411)
OKLCHoklch(62.57% 0.151 291.2)
XYZxyz(29.5094, 23.0078, 69.8903)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74DB #C5DB74
analogous
#7491DB #8A74DB #BE74DB
triadic
#8A74DB #DB8A74 #74DB8A
tetradic
#8A74DB #DB7491 #C5DB74 #74DBBE
square
#8A74DB #DB7491 #C5DB74 #74DBBE
split-complementary
#8A74DB #DBBE74 #91DB74
monochromatic
#462CA9 #6143CE #8A74DB #B3A5E8 #DCD5F4

Accessibility & contrast

On white

3.75
#8A74DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8A74DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74DB
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74DB#FFFFFF#000000##000000
##8A74DB1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F86DF
Deuteranopia (green-blind)
#5182D9
Tritanopia (blue-blind)
#75889D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a74db;
/* rgb */ color: rgb(138, 116, 219);
/* oklch */ color: oklch(62.6% 0.151 291.2);
Tailwind
colors: {
  custom: {
    50: '#b09ce7',
    500: '#8a74db',
    950: '#000000',
  },
}
SCSS
$custom: #8a74db;
$custom-light: #b09ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74db",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 219
  },
  "hsl": {
    "h": 252.816,
    "s": 58.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62574,
    "c": 0.15136,
    "h": 291.2
  },
  "luminance": 0.23009
}

Semantic roles & 50–950 ramp

primary
#8A74DB
secondary
#DFE7C4
accent
#C61FA3
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A74DB

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

Preview Lab → · Contrast checker → · Palette generator →

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