#974DC7#974DC7

#974DC7 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.5% C 0.188 H 309.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#974DC7
RGBrgb(151, 77, 199)
HSLhsl(276, 52%, 54%)
HSVhsv(276, 61%, 78%)
CMYKcmyk(24.1%, 61.3%, 0%, 22%)
CIE-LABlab(46.99, 51.91, -51.41)
CIE-LCHlch(46.99, 73.06, 315.28°)
OKLaboklab(56.53% 0.12 -0.1449)
OKLCHoklch(56.53% 0.188 309.6)
XYZxyz(25.7232, 16.0111, 55.7571)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974DC7 #7DC74D
analogous
#5A4DC7 #974DC7 #C74DBA
triadic
#974DC7 #C7974D #4DC797
tetradic
#974DC7 #C75A4D #7DC74D #4DBAC7
square
#974DC7 #C75A4D #7DC74D #4DBAC7
split-complementary
#974DC7 #BAC74D #4DC75A
monochromatic
#552575 #7733A3 #974DC7 #B27CD6 #CDAAE4

Accessibility & contrast

On white

5.00
#974DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#974DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974DC7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974DC7#FFFFFF#000000##FFFFFF
##974DC71.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166CCB
Deuteranopia (green-blind)
#3D71C4
Tritanopia (blue-blind)
#906583
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #974dc7;
/* rgb */ color: rgb(151, 77, 199);
/* oklch */ color: oklch(56.5% 0.188 309.6);
Tailwind
colors: {
  custom: {
    50: '#b983d9',
    500: '#974dc7',
    950: '#000000',
  },
}
SCSS
$custom: #974dc7;
$custom-light: #b983d9;
$custom-dark: #000000;
JSON
{
  "hex": "#974dc7",
  "rgb": {
    "r": 151,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 276.393,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56534,
    "c": 0.1881,
    "h": 309.6
  },
  "luminance": 0.16011
}

Semantic roles & 50–950 ramp

primary
#974DC7
secondary
#B2D29E
accent
#DC4C85
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #974DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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