#974CD7#974CD7

#974CD7 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.5% C 0.207 H 305.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#974CD7
RGBrgb(151, 76, 215)
HSLhsl(272, 63%, 57%)
HSVhsv(272, 65%, 84%)
CMYKcmyk(29.8%, 64.7%, 0%, 15.7%)
CIE-LABlab(47.82, 56.05, -59.26)
CIE-LCHlch(47.82, 81.56, 313.41°)
OKLaboklab(57.46% 0.1203 -0.1679)
OKLCHoklch(57.46% 0.207 305.6)
XYZxyz(27.6100, 16.6547, 66.0369)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974CD7 #8CD74C
analogous
#524CD7 #974CD7 #D74CD2
triadic
#974CD7 #D7974C #4CD797
tetradic
#974CD7 #D7524C #8CD74C #4CD2D7
square
#974CD7 #D7524C #8CD74C #4CD2D7
split-complementary
#974CD7 #D2D74C #4CD752
monochromatic
#591F8A #792ABC #974CD7 #B47EE2 #D1B0ED

Accessibility & contrast

On white

4.85
#974CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#974CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974CD7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974CD7#FFFFFF#000000##FFFFFF
##974CD71.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#2872D4
Tritanopia (blue-blind)
#8C6A8B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #974cd7;
/* rgb */ color: rgb(151, 76, 215);
/* oklch */ color: oklch(57.5% 0.207 305.6);
Tailwind
colors: {
  custom: {
    50: '#ba83e4',
    500: '#974cd7',
    950: '#000000',
  },
}
SCSS
$custom: #974cd7;
$custom-light: #ba83e4;
$custom-dark: #000000;
JSON
{
  "hex": "#974cd7",
  "rgb": {
    "r": 151,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 272.374,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5746,
    "c": 0.20657,
    "h": 305.6
  },
  "luminance": 0.16654
}

Semantic roles & 50–950 ramp

primary
#974CD7
secondary
#BDDCA3
accent
#E6418D
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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