#974EA2#974EA2

#974EA2 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 54.5% C 0.148 H 322.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#974EA2
RGBrgb(151, 78, 162)
HSLhsl(292, 35%, 47%)
HSVhsv(292, 52%, 64%)
CMYKcmyk(6.8%, 51.9%, 0%, 36.5%)
CIE-LABlab(45.13, 43.52, -32.69)
CIE-LCHlch(45.13, 54.43, 323.09°)
OKLaboklab(54.51% 0.1166 -0.0904)
OKLCHoklch(54.51% 0.148 322.2)
XYZxyz(22.0078, 14.6377, 35.8415)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974EA2 #59A24E
analogous
#6D4EA2 #974EA2 #A24E83
triadic
#974EA2 #A2974E #4EA297
tetradic
#974EA2 #A26D4E #59A24E #4E83A2
square
#974EA2 #A26D4E #59A24E #4E83A2
split-complementary
#974EA2 #83A24E #4EA26D
monochromatic
#4A264F #703A79 #974EA2 #B272BB #C89BCF

Accessibility & contrast

On white

5.35
#974EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#974EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974EA2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974EA2#FFFFFF#000000##FFFFFF
##974EA21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#995971
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #974ea2;
/* rgb */ color: rgb(151, 78, 162);
/* oklch */ color: oklch(54.5% 0.148 322.2);
Tailwind
colors: {
  custom: {
    50: '#b782be',
    500: '#974ea2',
    950: '#000000',
  },
}
SCSS
$custom: #974ea2;
$custom-light: #b782be;
$custom-dark: #000000;
JSON
{
  "hex": "#974ea2",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 292.143,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54514,
    "c": 0.14755,
    "h": 322.2
  },
  "luminance": 0.14637
}

Semantic roles & 50–950 ramp

primary
#974EA2
secondary
#96BC90
accent
#CB5D6B
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#120B12
muted
#817C81

Preview Lab

Preview with #974EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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