#974ED2#974ED2

#974ED2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.4% C 0.199 H 306.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#974ED2
RGBrgb(151, 78, 210)
HSLhsl(273, 59%, 56%)
HSVhsv(273, 63%, 82%)
CMYKcmyk(28.1%, 62.9%, 0%, 17.6%)
CIE-LABlab(47.86, 53.92, -56.34)
CIE-LCHlch(47.86, 77.98, 313.74°)
OKLaboklab(57.38% 0.1184 -0.1593)
OKLCHoklch(57.38% 0.199 306.6)
XYZxyz(27.1173, 16.6815, 62.7516)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974ED2 #89D24E
analogous
#554ED2 #974ED2 #D24ECB
triadic
#974ED2 #D2974E #4ED297
tetradic
#974ED2 #D2554E #89D24E #4ECBD2
square
#974ED2 #D2554E #89D24E #4ECBD2
split-complementary
#974ED2 #CBD24E #4ED255
monochromatic
#582284 #792EB5 #974ED2 #B47FDE #D0B0EB

Accessibility & contrast

On white

4.84
#974ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#974ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974ED2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974ED2#FFFFFF#000000##FFFFFF
##974ED21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #974ed2;
/* rgb */ color: rgb(151, 78, 210);
/* oklch */ color: oklch(57.4% 0.199 306.6);
Tailwind
colors: {
  custom: {
    50: '#ba84e0',
    500: '#974ed2',
    950: '#000000',
  },
}
SCSS
$custom: #974ed2;
$custom-light: #ba84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#974ed2",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 273.182,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57381,
    "c": 0.19851,
    "h": 306.6
  },
  "luminance": 0.16681
}

Semantic roles & 50–950 ramp

primary
#974ED2
secondary
#BBD9A3
accent
#E3458C
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #974ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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