#974DDD#974DDD

#974DDD is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.0% C 0.212 H 304.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#974DDD
RGBrgb(151, 77, 221)
HSLhsl(271, 68%, 58%)
HSVhsv(271, 65%, 87%)
CMYKcmyk(31.7%, 65.2%, 0%, 13.3%)
CIE-LABlab(48.40, 56.96, -61.75)
CIE-LCHlch(48.40, 84.00, 312.69°)
OKLaboklab(58% 0.1187 -0.1752)
OKLCHoklch(58% 0.212 304.1)
XYZxyz(28.4646, 17.1076, 70.1951)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974DDD #93DD4D
analogous
#4F4DDD #974DDD #DD4DDB
triadic
#974DDD #DD974D #4DDD97
tetradic
#974DDD #DD4F4D #93DD4D #4DDBDD
square
#974DDD #DD4F4D #93DD4D #4DDBDD
split-complementary
#974DDD #DBDD4D #4DDD4F
monochromatic
#591C93 #7926C7 #974DDD #B580E7 #D3B4F1

Accessibility & contrast

On white

4.75
#974DDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #974DDD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974DDD#FFFFFF#000000##FFFFFF
##974DDD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#1E73DA
Tritanopia (blue-blind)
#8A6D8E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #974ddd;
/* rgb */ color: rgb(151, 77, 221);
/* oklch */ color: oklch(58.0% 0.212 304.1);
Tailwind
colors: {
  custom: {
    50: '#ba83e8',
    500: '#974ddd',
    950: '#000000',
  },
}
SCSS
$custom: #974ddd;
$custom-light: #ba83e8;
$custom-dark: #000000;
JSON
{
  "hex": "#974ddd",
  "rgb": {
    "r": 151,
    "g": 77,
    "b": 221
  },
  "hsl": {
    "h": 270.833,
    "s": 67.925,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57999,
    "c": 0.21166,
    "h": 304.1
  },
  "luminance": 0.17108
}

Semantic roles & 50–950 ramp

primary
#974DDD
secondary
#C2DFA6
accent
#EB3D91
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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