#974ECA#974ECA

#974ECA is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.9% C 0.190 H 308.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#974ECA
RGBrgb(151, 78, 202)
HSLhsl(275, 54%, 55%)
HSVhsv(275, 61%, 79%)
CMYKcmyk(25.2%, 61.4%, 0%, 20.8%)
CIE-LABlab(47.36, 52.09, -52.55)
CIE-LCHlch(47.36, 73.99, 314.75°)
OKLaboklab(56.86% 0.1187 -0.1482)
OKLCHoklch(56.86% 0.19 308.7)
XYZxyz(26.1454, 16.2928, 57.6331)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974ECA #81CA4E
analogous
#594ECA #974ECA #CA4EBF
triadic
#974ECA #CA974E #4ECA97
tetradic
#974ECA #CA594E #81CA4E #4EBFCA
square
#974ECA #CA594E #81CA4E #4EBFCA
split-complementary
#974ECA #BFCA4E #4ECA59
monochromatic
#562479 #7832A8 #974ECA #B37DD8 #CEACE6

Accessibility & contrast

On white

4.93
#974ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#974ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974ECA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974ECA#FFFFFF#000000##FFFFFF
##974ECA1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136DCE
Deuteranopia (green-blind)
#3C71C7
Tritanopia (blue-blind)
#906685
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #974eca;
/* rgb */ color: rgb(151, 78, 202);
/* oklch */ color: oklch(56.9% 0.190 308.7);
Tailwind
colors: {
  custom: {
    50: '#b983db',
    500: '#974eca',
    950: '#000000',
  },
}
SCSS
$custom: #974eca;
$custom-light: #b983db;
$custom-dark: #000000;
JSON
{
  "hex": "#974eca",
  "rgb": {
    "r": 151,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 275.323,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56859,
    "c": 0.18989,
    "h": 308.7
  },
  "luminance": 0.16292
}

Semantic roles & 50–950 ramp

primary
#974ECA
secondary
#B5D4A0
accent
#DD4B87
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #974ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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