#974ED6#974ED6

#974ED6 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.203 H 305.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#974ED6
RGBrgb(151, 78, 214)
HSLhsl(272, 62%, 57%)
HSVhsv(272, 64%, 84%)
CMYKcmyk(29.4%, 63.6%, 0%, 16.1%)
CIE-LABlab(48.11, 54.84, -58.22)
CIE-LCHlch(48.11, 79.98, 313.29°)
OKLaboklab(57.65% 0.1182 -0.1649)
OKLCHoklch(57.65% 0.203 305.6)
XYZxyz(27.6218, 16.8833, 65.4089)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974ED6 #8DD64E
analogous
#534ED6 #974ED6 #D64ED1
triadic
#974ED6 #D6974E #4ED697
tetradic
#974ED6 #D6534E #8DD64E #4ED1D6
square
#974ED6 #D6534E #8DD64E #4ED1D6
split-complementary
#974ED6 #D1D64E #4ED653
monochromatic
#59208A #792BBB #974ED6 #B480E2 #D1B1ED

Accessibility & contrast

On white

4.80
#974ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#974ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974ED6
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974ED6#FFFFFF#000000##FFFFFF
##974ED61.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#2D72D3
Tritanopia (blue-blind)
#8C6B8B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #974ed6;
/* rgb */ color: rgb(151, 78, 214);
/* oklch */ color: oklch(57.6% 0.203 305.6);
Tailwind
colors: {
  custom: {
    50: '#ba84e3',
    500: '#974ed6',
    950: '#000000',
  },
}
SCSS
$custom: #974ed6;
$custom-light: #ba84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#974ed6",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 272.206,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57649,
    "c": 0.20283,
    "h": 305.6
  },
  "luminance": 0.16883
}

Semantic roles & 50–950 ramp

primary
#974ED6
secondary
#BEDBA4
accent
#E5428E
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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