#974ED5#974ED5

#974ED5 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.6% C 0.202 H 305.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#974ED5
RGBrgb(151, 78, 213)
HSLhsl(272, 62%, 57%)
HSVhsv(272, 63%, 84%)
CMYKcmyk(29.1%, 63.4%, 0%, 16.5%)
CIE-LABlab(48.05, 54.61, -57.75)
CIE-LCHlch(48.05, 79.48, 313.40°)
OKLaboklab(57.58% 0.1182 -0.1635)
OKLCHoklch(57.58% 0.202 305.9)
XYZxyz(27.4945, 16.8324, 64.7384)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974ED5 #8CD54E
analogous
#534ED5 #974ED5 #D54ED0
triadic
#974ED5 #D5974E #4ED597
tetradic
#974ED5 #D5534E #8CD54E #4ED0D5
square
#974ED5 #D5534E #8CD54E #4ED0D5
split-complementary
#974ED5 #D0D54E #4ED553
monochromatic
#592088 #792CBA #974ED5 #B47FE1 #D1B1EC

Accessibility & contrast

On white

4.81
#974ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#974ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974ED5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974ED5#FFFFFF#000000##FFFFFF
##974ED51.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#2E72D2
Tritanopia (blue-blind)
#8C6A8B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #974ed5;
/* rgb */ color: rgb(151, 78, 213);
/* oklch */ color: oklch(57.6% 0.202 305.9);
Tailwind
colors: {
  custom: {
    50: '#ba84e3',
    500: '#974ed5',
    950: '#000000',
  },
}
SCSS
$custom: #974ed5;
$custom-light: #ba84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#974ed5",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 272.444,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57582,
    "c": 0.20175,
    "h": 305.9
  },
  "luminance": 0.16832
}

Semantic roles & 50–950 ramp

primary
#974ED5
secondary
#BDDBA4
accent
#E5438D
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #974ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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