#974EE4#974EE4

#974EE4 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.6% C 0.218 H 302.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#974EE4
RGBrgb(151, 78, 228)
HSLhsl(269, 74%, 60%)
HSVhsv(269, 66%, 89%)
CMYKcmyk(33.8%, 65.8%, 0%, 10.6%)
CIE-LABlab(49.04, 58.12, -64.67)
CIE-LCHlch(49.04, 86.95, 311.95°)
OKLaboklab(58.61% 0.1169 -0.1838)
OKLCHoklch(58.61% 0.218 302.5)
XYZxyz(29.4872, 17.6295, 75.2331)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974EE4 #9BE44E
analogous
#4E50E4 #974EE4 #E24EE4
triadic
#974EE4 #E4974E #4EE497
tetradic
#974EE4 #E44E50 #9BE44E #4EE4E2
square
#974EE4 #E44E50 #9BE44E #4EE4E2
split-complementary
#974EE4 #E4E24E #50E44E
monochromatic
#5A189F #7820D4 #974EE4 #B683EC #D5B8F4

Accessibility & contrast

On white

4.64
#974EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#974EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #974EE4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974EE4#FFFFFF#000000##FFFFFF
##974EE41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0874E1
Tritanopia (blue-blind)
#877093
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #974ee4;
/* rgb */ color: rgb(151, 78, 228);
/* oklch */ color: oklch(58.6% 0.218 302.5);
Tailwind
colors: {
  custom: {
    50: '#bb84ed',
    500: '#974ee4',
    950: '#000000',
  },
}
SCSS
$custom: #974ee4;
$custom-light: #bb84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#974ee4",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 228
  },
  "hsl": {
    "h": 269.2,
    "s": 73.529,
    "l": 60
  },
  "oklch": {
    "l": 0.58615,
    "c": 0.21786,
    "h": 302.5
  },
  "luminance": 0.1763
}

Semantic roles & 50–950 ramp

primary
#974EE4
secondary
#C8E4AA
accent
#F03896
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974EE4

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

Preview Lab → · Contrast checker → · Palette generator →

#974EE4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva