#974CDB#974CDB

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

Color values

HEX#974CDB
RGBrgb(151, 76, 219)
HSLhsl(271, 67%, 58%)
HSVhsv(271, 65%, 86%)
CMYKcmyk(31.1%, 65.3%, 0%, 14.1%)
CIE-LABlab(48.09, 56.97, -61.11)
CIE-LCHlch(48.09, 83.55, 312.99°)
OKLaboklab(57.73% 0.12 -0.1733)
OKLCHoklch(57.73% 0.211 304.7)
XYZxyz(28.1303, 16.8628, 68.7770)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974CDB #90DB4C
analogous
#504CDB #974CDB #DB4CD7
triadic
#974CDB #DB974C #4CDB97
tetradic
#974CDB #DB504C #90DB4C #4CD7DB
square
#974CDB #DB504C #90DB4C #4CD7DB
split-complementary
#974CDB #D7DB4C #4CDB50
monochromatic
#591D90 #7927C3 #974CDB #B57FE5 #D2B2EF

Accessibility & contrast

On white

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

On black

4.37
#974CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##974CDB#FFFFFF#000000##FFFFFF
##974CDB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#2072D8
Tritanopia (blue-blind)
#8B6B8D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #974cdb;
/* rgb */ color: rgb(151, 76, 219);
/* oklch */ color: oklch(57.7% 0.211 304.7);
Tailwind
colors: {
  custom: {
    50: '#ba83e7',
    500: '#974cdb',
    950: '#000000',
  },
}
SCSS
$custom: #974cdb;
$custom-light: #ba83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#974cdb",
  "rgb": {
    "r": 151,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 271.469,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57734,
    "c": 0.21083,
    "h": 304.7
  },
  "luminance": 0.16863
}

Semantic roles & 50–950 ramp

primary
#974CDB
secondary
#C0DEA5
accent
#E93E90
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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