#974EC2#974EC2

#974EC2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.4% C 0.181 H 310.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#974EC2
RGBrgb(151, 78, 194)
HSLhsl(278, 49%, 53%)
HSVhsv(278, 60%, 76%)
CMYKcmyk(22.2%, 59.8%, 0%, 23.9%)
CIE-LABlab(46.87, 50.30, -48.70)
CIE-LCHlch(46.87, 70.01, 315.93°)
OKLaboklab(56.35% 0.1188 -0.1369)
OKLCHoklch(56.35% 0.181 310.9)
XYZxyz(25.2227, 15.9237, 52.7733)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974EC2 #79C24E
analogous
#5D4EC2 #974EC2 #C24EB3
triadic
#974EC2 #C2974E #4EC297
tetradic
#974EC2 #C25D4E #79C24E #4EB3C2
square
#974EC2 #C25D4E #79C24E #4EB3C2
split-complementary
#974EC2 #B3C24E #4EC25D
monochromatic
#54266F #77369D #974EC2 #B27CD2 #CCA9E1

Accessibility & contrast

On white

5.02
#974EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#974EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974EC2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974EC2#FFFFFF#000000##FFFFFF
##974EC21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236CC6
Deuteranopia (green-blind)
#4370BF
Tritanopia (blue-blind)
#926481
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #974ec2;
/* rgb */ color: rgb(151, 78, 194);
/* oklch */ color: oklch(56.4% 0.181 310.9);
Tailwind
colors: {
  custom: {
    50: '#b983d5',
    500: '#974ec2',
    950: '#000000',
  },
}
SCSS
$custom: #974ec2;
$custom-light: #b983d5;
$custom-dark: #000000;
JSON
{
  "hex": "#974ec2",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 277.759,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56354,
    "c": 0.18128,
    "h": 310.9
  },
  "luminance": 0.15923
}

Semantic roles & 50–950 ramp

primary
#974EC2
secondary
#AFCF9D
accent
#D85082
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #974EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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