#7970CB#7970CB

#7970CB is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.5% C 0.136 H 286.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7970CB
RGBrgb(121, 112, 203)
HSLhsl(246, 47%, 62%)
HSVhsv(246, 45%, 80%)
CMYKcmyk(40.4%, 44.8%, 0%, 20.4%)
CIE-LABlab(51.80, 25.79, -46.21)
CIE-LCHlch(51.80, 52.92, 299.17°)
OKLaboklab(59.46% 0.0375 -0.1305)
OKLCHoklch(59.46% 0.136 286)
XYZxyz(24.4558, 19.9642, 59.0533)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7970CB #C2CB70
analogous
#7095CB #7970CB #A770CB
triadic
#7970CB #CB7970 #70CB79
tetradic
#7970CB #CB7095 #C2CB70 #70CBA7
square
#7970CB #CB7095 #C2CB70 #70CBA7
split-complementary
#7970CB #CBA770 #95CB70
monochromatic
#3C338D #4F44BA #7970CB #A39DDB #CDCAEC

Accessibility & contrast

On white

4.21
#7970CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7970CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7970CB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7970CB#FFFFFF#000000##000000
##7970CB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7ECE
Deuteranopia (green-blind)
#4D79C9
Tritanopia (blue-blind)
#628294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7970cb;
/* rgb */ color: rgb(121, 112, 203);
/* oklch */ color: oklch(59.5% 0.136 286.0);
Tailwind
colors: {
  custom: {
    50: '#a399db',
    500: '#7970cb',
    950: '#000000',
  },
}
SCSS
$custom: #7970cb;
$custom-light: #a399db;
$custom-dark: #000000;
JSON
{
  "hex": "#7970cb",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 245.934,
    "s": 46.667,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59464,
    "c": 0.1358,
    "h": 286
  },
  "luminance": 0.19965
}

Semantic roles & 50–950 ramp

primary
#7970CB
secondary
#D9DCBB
accent
#BA2CAC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7970CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7970CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva