#974DD2#974DD2

#974DD2 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.3% C 0.200 H 306.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#974DD2
RGBrgb(151, 77, 210)
HSLhsl(273, 60%, 56%)
HSVhsv(273, 63%, 82%)
CMYKcmyk(28.1%, 63.3%, 0%, 17.6%)
CIE-LABlab(47.68, 54.41, -56.63)
CIE-LCHlch(47.68, 78.53, 313.85°)
OKLaboklab(57.25% 0.1196 -0.1602)
OKLCHoklch(57.25% 0.2 306.7)
XYZxyz(27.0468, 16.5405, 62.7281)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974DD2 #88D24D
analogous
#554DD2 #974DD2 #D24DCB
triadic
#974DD2 #D2974D #4DD297
tetradic
#974DD2 #D2554D #88D24D #4DCBD2
square
#974DD2 #D2554D #88D24D #4DCBD2
split-complementary
#974DD2 #CBD24D #4DD255
monochromatic
#582183 #782EB4 #974DD2 #B47EDE #D0AFEB

Accessibility & contrast

On white

4.87
#974DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#974DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974DD2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974DD2#FFFFFF#000000##FFFFFF
##974DD21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#3172CF
Tritanopia (blue-blind)
#8D6989
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #974dd2;
/* rgb */ color: rgb(151, 77, 210);
/* oklch */ color: oklch(57.3% 0.200 306.7);
Tailwind
colors: {
  custom: {
    50: '#ba83e0',
    500: '#974dd2',
    950: '#000000',
  },
}
SCSS
$custom: #974dd2;
$custom-light: #ba83e0;
$custom-dark: #000000;
JSON
{
  "hex": "#974dd2",
  "rgb": {
    "r": 151,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 273.383,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57251,
    "c": 0.19989,
    "h": 306.7
  },
  "luminance": 0.1654
}

Semantic roles & 50–950 ramp

primary
#974DD2
secondary
#BAD9A2
accent
#E3458B
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #974DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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