#974BC7#974BC7

#974BC7 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.3% C 0.191 H 309.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#974BC7
RGBrgb(151, 75, 199)
HSLhsl(277, 53%, 54%)
HSVhsv(277, 62%, 78%)
CMYKcmyk(24.1%, 62.3%, 0%, 22%)
CIE-LABlab(46.63, 52.90, -51.99)
CIE-LCHlch(46.63, 74.17, 315.50°)
OKLaboklab(56.27% 0.1224 -0.1466)
OKLCHoklch(56.27% 0.191 309.9)
XYZxyz(25.5854, 15.7355, 55.7112)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974BC7 #7BC74B
analogous
#594BC7 #974BC7 #C74BB9
triadic
#974BC7 #C7974B #4BC797
tetradic
#974BC7 #C7594B #7BC74B #4BB9C7
square
#974BC7 #C7594B #7BC74B #4BB9C7
split-complementary
#974BC7 #B9C74B #4BC759
monochromatic
#552474 #7732A2 #974BC7 #B27AD6 #CDA8E4

Accessibility & contrast

On white

5.06
#974BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#974BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974BC7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974BC7#FFFFFF#000000##FFFFFF
##974BC71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6BCB
Deuteranopia (green-blind)
#3B70C4
Tritanopia (blue-blind)
#916382
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #974bc7;
/* rgb */ color: rgb(151, 75, 199);
/* oklch */ color: oklch(56.3% 0.191 309.9);
Tailwind
colors: {
  custom: {
    50: '#b982d9',
    500: '#974bc7',
    950: '#000000',
  },
}
SCSS
$custom: #974bc7;
$custom-light: #b982d9;
$custom-dark: #000000;
JSON
{
  "hex": "#974bc7",
  "rgb": {
    "r": 151,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 276.774,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5627,
    "c": 0.19095,
    "h": 309.9
  },
  "luminance": 0.15735
}

Semantic roles & 50–950 ramp

primary
#974BC7
secondary
#B1D19C
accent
#DC4C84
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #974BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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