#974FDB#974FDB

#974FDB is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.1% C 0.207 H 304.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#974FDB
RGBrgb(151, 79, 219)
HSLhsl(271, 66%, 58%)
HSVhsv(271, 64%, 86%)
CMYKcmyk(31.1%, 63.9%, 0%, 14.1%)
CIE-LABlab(48.62, 55.51, -60.25)
CIE-LCHlch(48.62, 81.93, 312.66°)
OKLaboklab(58.12% 0.1167 -0.1708)
OKLCHoklch(58.12% 0.207 304.3)
XYZxyz(28.3418, 17.2859, 68.8475)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974FDB #93DB4F
analogous
#514FDB #974FDB #DB4FD9
triadic
#974FDB #DB974F #4FDB97
tetradic
#974FDB #DB514F #93DB4F #4FD9DB
square
#974FDB #DB514F #93DB4F #4FD9DB
split-complementary
#974FDB #D9DB4F #4FDB51
monochromatic
#591E92 #7928C5 #974FDB #B582E5 #D3B5F0

Accessibility & contrast

On white

4.71
#974FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#974FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974FDB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974FDB#FFFFFF#000000##FFFFFF
##974FDB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#2673D8
Tritanopia (blue-blind)
#8A6D8E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #974fdb;
/* rgb */ color: rgb(151, 79, 219);
/* oklch */ color: oklch(58.1% 0.207 304.3);
Tailwind
colors: {
  custom: {
    50: '#ba84e7',
    500: '#974fdb',
    950: '#000000',
  },
}
SCSS
$custom: #974fdb;
$custom-light: #ba84e7;
$custom-dark: #000000;
JSON
{
  "hex": "#974fdb",
  "rgb": {
    "r": 151,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 270.857,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58117,
    "c": 0.20687,
    "h": 304.3
  },
  "luminance": 0.17286
}

Semantic roles & 50–950 ramp

primary
#974FDB
secondary
#C2DFA7
accent
#E93F91
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #974FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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