#797ACC#797ACC

#797ACC is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.5% C 0.123 H 281.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#797ACC
RGBrgb(121, 122, 204)
HSLhsl(239, 45%, 64%)
HSVhsv(239, 41%, 80%)
CMYKcmyk(40.7%, 40.2%, 0%, 20%)
CIE-LABlab(54.39, 20.09, -42.67)
CIE-LCHlch(54.39, 47.17, 295.21°)
OKLaboklab(61.45% 0.0247 -0.1202)
OKLCHoklch(61.45% 0.123 281.6)
XYZxyz(25.7406, 22.3426, 60.0713)
Luminance0.2234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ACC #CCCB79
analogous
#79A3CC #797ACC #A179CC
triadic
#797ACC #CC797A #7ACC79
tetradic
#797ACC #CC79A3 #CCCB79 #79CCA1
square
#797ACC #CC79A3 #CCCB79 #79CCA1
split-complementary
#797ACC #CCA179 #A3CC79
monochromatic
#383993 #4D4EBB #797ACC #A5A6DD #D2D2EE

Accessibility & contrast

On white

3.84
#797ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#797ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ACC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ACC#FFFFFF#000000##000000
##797ACC1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D85CF
Deuteranopia (green-blind)
#597FCA
Tritanopia (blue-blind)
#608A99
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797acc;
/* rgb */ color: rgb(121, 122, 204);
/* oklch */ color: oklch(61.5% 0.123 281.6);
Tailwind
colors: {
  custom: {
    50: '#a3a0dc',
    500: '#797acc',
    950: '#000000',
  },
}
SCSS
$custom: #797acc;
$custom-light: #a3a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797acc",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 204
  },
  "hsl": {
    "h": 239.277,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61452,
    "c": 0.12269,
    "h": 281.6
  },
  "luminance": 0.22344
}

Semantic roles & 50–950 ramp

primary
#797ACC
secondary
#DFDFC2
accent
#B62DB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797ACC

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

Preview Lab → · Contrast checker → · Palette generator →

#797ACC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva