#974CD8#974CD8

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

Color values

HEX#974CD8
RGBrgb(151, 76, 216)
HSLhsl(272, 64%, 57%)
HSVhsv(272, 65%, 85%)
CMYKcmyk(30.1%, 64.8%, 0%, 15.3%)
CIE-LABlab(47.89, 56.28, -59.72)
CIE-LCHlch(47.89, 82.06, 313.30°)
OKLaboklab(57.53% 0.1203 -0.1693)
OKLCHoklch(57.53% 0.208 305.4)
XYZxyz(27.7389, 16.7063, 66.7157)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974CD8 #8DD84C
analogous
#514CD8 #974CD8 #D84CD3
triadic
#974CD8 #D8974C #4CD897
tetradic
#974CD8 #D8514C #8DD84C #4CD3D8
square
#974CD8 #D8514C #8DD84C #4CD3D8
split-complementary
#974CD8 #D3D84C #4CD851
monochromatic
#591E8B #7929BE #974CD8 #B47EE3 #D1B1EE

Accessibility & contrast

On white

4.84
#974CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#974CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974CD8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974CD8#FFFFFF#000000##FFFFFF
##974CD81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#2672D5
Tritanopia (blue-blind)
#8C6A8B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #974cd8;
/* rgb */ color: rgb(151, 76, 216);
/* oklch */ color: oklch(57.5% 0.208 305.4);
Tailwind
colors: {
  custom: {
    50: '#ba83e5',
    500: '#974cd8',
    950: '#000000',
  },
}
SCSS
$custom: #974cd8;
$custom-light: #ba83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#974cd8",
  "rgb": {
    "r": 151,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 272.143,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57528,
    "c": 0.20764,
    "h": 305.4
  },
  "luminance": 0.16706
}

Semantic roles & 50–950 ramp

primary
#974CD8
secondary
#BEDCA4
accent
#E7418E
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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