#974CC5#974CC5

#974CC5 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.3% C 0.187 H 310.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#974CC5
RGBrgb(151, 76, 197)
HSLhsl(277, 51%, 54%)
HSVhsv(277, 61%, 77%)
CMYKcmyk(23.4%, 61.4%, 0%, 22.7%)
CIE-LABlab(46.68, 51.97, -50.74)
CIE-LCHlch(46.68, 72.63, 315.68°)
OKLaboklab(56.27% 0.1212 -0.1429)
OKLCHoklch(56.27% 0.187 310.3)
XYZxyz(25.4231, 15.7799, 54.5191)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974CC5 #7AC54C
analogous
#5A4CC5 #974CC5 #C54CB6
triadic
#974CC5 #C5974C #4CC597
tetradic
#974CC5 #C55A4C #7AC54C #4CB6C5
square
#974CC5 #C55A4C #7AC54C #4CB6C5
split-complementary
#974CC5 #B6C54C #4CC55A
monochromatic
#552572 #7734A0 #974CC5 #B27AD4 #CDA8E3

Accessibility & contrast

On white

5.05
#974CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#974CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974CC5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974CC5#FFFFFF#000000##FFFFFF
##974CC51.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176BC9
Deuteranopia (green-blind)
#3E70C2
Tritanopia (blue-blind)
#916381
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #974cc5;
/* rgb */ color: rgb(151, 76, 197);
/* oklch */ color: oklch(56.3% 0.187 310.3);
Tailwind
colors: {
  custom: {
    50: '#b982d7',
    500: '#974cc5',
    950: '#000000',
  },
}
SCSS
$custom: #974cc5;
$custom-light: #b982d7;
$custom-dark: #000000;
JSON
{
  "hex": "#974cc5",
  "rgb": {
    "r": 151,
    "g": 76,
    "b": 197
  },
  "hsl": {
    "h": 277.19,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56274,
    "c": 0.1874,
    "h": 310.3
  },
  "luminance": 0.15779
}

Semantic roles & 50–950 ramp

primary
#974CC5
secondary
#B0D09C
accent
#DB4D83
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #974CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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