#974FD9#974FD9

#974FD9 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.0% C 0.205 H 304.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#974FD9
RGBrgb(151, 79, 217)
HSLhsl(271, 64%, 58%)
HSVhsv(271, 64%, 85%)
CMYKcmyk(30.4%, 63.6%, 0%, 14.9%)
CIE-LABlab(48.49, 55.05, -59.32)
CIE-LCHlch(48.49, 80.93, 312.86°)
OKLaboklab(57.98% 0.1168 -0.1681)
OKLCHoklch(57.98% 0.205 304.8)
XYZxyz(28.0801, 17.1812, 67.4692)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974FD9 #91D94F
analogous
#524FD9 #974FD9 #D94FD6
triadic
#974FD9 #D9974F #4FD997
tetradic
#974FD9 #D9524F #91D94F #4FD6D9
square
#974FD9 #D9524F #91D94F #4FD6D9
split-complementary
#974FD9 #D6D94F #4FD952
monochromatic
#591F8F #792AC1 #974FD9 #B581E4 #D2B4EF

Accessibility & contrast

On white

4.73
#974FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#974FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974FD9
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974FD9#FFFFFF#000000##FFFFFF
##974FD91.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#2A73D6
Tritanopia (blue-blind)
#8B6C8D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #974fd9;
/* rgb */ color: rgb(151, 79, 217);
/* oklch */ color: oklch(58.0% 0.205 304.8);
Tailwind
colors: {
  custom: {
    50: '#ba84e5',
    500: '#974fd9',
    950: '#000000',
  },
}
SCSS
$custom: #974fd9;
$custom-light: #ba84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#974fd9",
  "rgb": {
    "r": 151,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 271.304,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57981,
    "c": 0.20472,
    "h": 304.8
  },
  "luminance": 0.17181
}

Semantic roles & 50–950 ramp

primary
#974FD9
secondary
#C1DDA6
accent
#E74090
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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