#974CE2#974CE2

#974CE2 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.2% C 0.218 H 303.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#974CE2
RGBrgb(151, 76, 226)
HSLhsl(270, 72%, 59%)
HSVhsv(270, 66%, 89%)
CMYKcmyk(33.2%, 66.4%, 0%, 11.4%)
CIE-LABlab(48.56, 58.61, -64.32)
CIE-LCHlch(48.56, 87.02, 312.34°)
OKLaboklab(58.22% 0.1193 -0.1828)
OKLCHoklch(58.22% 0.218 303.1)
XYZxyz(29.0712, 17.2392, 73.7327)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974CE2 #97E24C
analogous
#4C4CE2 #974CE2 #E24CE2
triadic
#974CE2 #E2974C #4CE297
tetradic
#974CE2 #E24C4C #97E24C #4CE2E2
square
#974CE2 #E24C4C #97E24C #4CE2E2
split-complementary
#974CE2 #E2E24C #4CE24C
monochromatic
#5A199B #7822CF #974CE2 #B681EB #D4B5F3

Accessibility & contrast

On white

4.72
#974CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#974CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974CE2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974CE2#FFFFFF#000000##FFFFFF
##974CE21.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#0873DF
Tritanopia (blue-blind)
#886E91
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #974ce2;
/* rgb */ color: rgb(151, 76, 226);
/* oklch */ color: oklch(58.2% 0.218 303.1);
Tailwind
colors: {
  custom: {
    50: '#bb83ec',
    500: '#974ce2',
    950: '#000000',
  },
}
SCSS
$custom: #974ce2;
$custom-light: #bb83ec;
$custom-dark: #000000;
JSON
{
  "hex": "#974ce2",
  "rgb": {
    "r": 151,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 270,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.21827,
    "h": 303.1
  },
  "luminance": 0.17239
}

Semantic roles & 50–950 ramp

primary
#974CE2
secondary
#C5E2A8
accent
#EF3994
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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