#974BD4#974BD4

#974BD4 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.205 H 306.5°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#974BD4
RGBrgb(151, 75, 212)
HSLhsl(273, 61%, 56%)
HSVhsv(273, 65%, 83%)
CMYKcmyk(28.8%, 64.6%, 0%, 16.9%)
CIE-LABlab(47.45, 55.84, -58.14)
CIE-LCHlch(47.45, 80.61, 313.84°)
OKLaboklab(57.13% 0.1217 -0.1646)
OKLCHoklch(57.13% 0.205 306.5)
XYZxyz(27.1597, 16.3652, 64.0026)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974BD4 #88D44B
analogous
#534BD4 #974BD4 #D44BCC
triadic
#974BD4 #D4974B #4BD497
tetradic
#974BD4 #D4534B #88D44B #4BCCD4
square
#974BD4 #D4534B #88D44B #4BCCD4
split-complementary
#974BD4 #CCD44B #4BD453
monochromatic
#582085 #782CB6 #974BD4 #B47CE0 #D0AEEC

Accessibility & contrast

On white

4.91
#974BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#974BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974BD4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974BD4#FFFFFF#000000##FFFFFF
##974BD41.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#2B71D1
Tritanopia (blue-blind)
#8D6889
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #974bd4;
/* rgb */ color: rgb(151, 75, 212);
/* oklch */ color: oklch(57.1% 0.205 306.5);
Tailwind
colors: {
  custom: {
    50: '#ba82e2',
    500: '#974bd4',
    950: '#000000',
  },
}
SCSS
$custom: #974bd4;
$custom-light: #ba82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#974bd4",
  "rgb": {
    "r": 151,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 273.285,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57129,
    "c": 0.20472,
    "h": 306.5
  },
  "luminance": 0.16365
}

Semantic roles & 50–950 ramp

primary
#974BD4
secondary
#BADAA1
accent
#E5438B
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #974BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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