#974FD7#974FD7

#974FD7 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.203 H 305.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#974FD7
RGBrgb(151, 79, 215)
HSLhsl(272, 63%, 58%)
HSVhsv(272, 63%, 84%)
CMYKcmyk(29.8%, 63.3%, 0%, 15.7%)
CIE-LABlab(48.36, 54.58, -58.39)
CIE-LCHlch(48.36, 79.93, 313.07°)
OKLaboklab(57.85% 0.1169 -0.1654)
OKLCHoklch(57.85% 0.203 305.3)
XYZxyz(27.8215, 17.0778, 66.1075)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974FD7 #8FD74F
analogous
#534FD7 #974FD7 #D74FD3
triadic
#974FD7 #D7974F #4FD797
tetradic
#974FD7 #D7534F #8FD74F #4FD3D7
square
#974FD7 #D7534F #8FD74F #4FD3D7
split-complementary
#974FD7 #D3D74F #4FD753
monochromatic
#59208C #792BBE #974FD7 #B481E2 #D2B3EE

Accessibility & contrast

On white

4.76
#974FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#974FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974FD7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974FD7#FFFFFF#000000##FFFFFF
##974FD71.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#2D73D4
Tritanopia (blue-blind)
#8C6C8C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #974fd7;
/* rgb */ color: rgb(151, 79, 215);
/* oklch */ color: oklch(57.8% 0.203 305.3);
Tailwind
colors: {
  custom: {
    50: '#ba84e4',
    500: '#974fd7',
    950: '#000000',
  },
}
SCSS
$custom: #974fd7;
$custom-light: #ba84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#974fd7",
  "rgb": {
    "r": 151,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 271.765,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57846,
    "c": 0.20255,
    "h": 305.3
  },
  "luminance": 0.17078
}

Semantic roles & 50–950 ramp

primary
#974FD7
secondary
#BFDCA6
accent
#E6428F
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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