#974CD5#974CD5

#974CD5 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.204 H 306.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#974CD5
RGBrgb(151, 76, 213)
HSLhsl(273, 62%, 57%)
HSVhsv(273, 64%, 84%)
CMYKcmyk(29.1%, 64.3%, 0%, 16.5%)
CIE-LABlab(47.69, 55.59, -58.32)
CIE-LCHlch(47.69, 80.57, 313.62°)
OKLaboklab(57.32% 0.1205 -0.1652)
OKLCHoklch(57.32% 0.204 306.1)
XYZxyz(27.3546, 16.5525, 64.6918)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974CD5 #8AD54C
analogous
#534CD5 #974CD5 #D54CCE
triadic
#974CD5 #D5974C #4CD597
tetradic
#974CD5 #D5534C #8AD54C #4CCED5
square
#974CD5 #D5534C #8AD54C #4CCED5
split-complementary
#974CD5 #CED54C #4CD553
monochromatic
#582087 #792BB9 #974CD5 #B47EE1 #D1AFEC

Accessibility & contrast

On white

4.87
#974CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#974CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974CD5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974CD5#FFFFFF#000000##FFFFFF
##974CD51.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#2B72D2
Tritanopia (blue-blind)
#8C698A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #974cd5;
/* rgb */ color: rgb(151, 76, 213);
/* oklch */ color: oklch(57.3% 0.204 306.1);
Tailwind
colors: {
  custom: {
    50: '#ba83e3',
    500: '#974cd5',
    950: '#000000',
  },
}
SCSS
$custom: #974cd5;
$custom-light: #ba83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#974cd5",
  "rgb": {
    "r": 151,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 272.847,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57324,
    "c": 0.20445,
    "h": 306.1
  },
  "luminance": 0.16552
}

Semantic roles & 50–950 ramp

primary
#974CD5
secondary
#BCDAA2
accent
#E5438C
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #974CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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