#797ACE#797ACE

#797ACE is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.6% C 0.126 H 281.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#797ACE
RGBrgb(121, 122, 206)
HSLhsl(239, 46%, 64%)
HSVhsv(239, 41%, 81%)
CMYKcmyk(41.3%, 40.8%, 0%, 19.2%)
CIE-LABlab(54.49, 20.66, -43.65)
CIE-LCHlch(54.49, 48.29, 295.33°)
OKLaboklab(61.56% 0.0251 -0.123)
OKLCHoklch(61.56% 0.126 281.5)
XYZxyz(25.9820, 22.4392, 61.3427)
Luminance0.2244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ACE #CECD79
analogous
#79A5CE #797ACE #A379CE
triadic
#797ACE #CE797A #7ACE79
tetradic
#797ACE #CE79A5 #CECD79 #79CEA3
square
#797ACE #CE79A5 #CECD79 #79CEA3
split-complementary
#797ACE #CEA379 #A5CE79
monochromatic
#373896 #4C4EBE #797ACE #A6A6DE #D3D3EF

Accessibility & contrast

On white

3.83
#797ACE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#797ACE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ACE
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ACE#FFFFFF#000000##000000
##797ACE1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C85D1
Deuteranopia (green-blind)
#587FCC
Tritanopia (blue-blind)
#5F8B9A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797ace;
/* rgb */ color: rgb(121, 122, 206);
/* oklch */ color: oklch(61.6% 0.126 281.5);
Tailwind
colors: {
  custom: {
    50: '#a3a0dd',
    500: '#797ace',
    950: '#000000',
  },
}
SCSS
$custom: #797ace;
$custom-light: #a3a0dd;
$custom-dark: #000000;
JSON
{
  "hex": "#797ace",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 206
  },
  "hsl": {
    "h": 239.294,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61562,
    "c": 0.12556,
    "h": 281.5
  },
  "luminance": 0.2244
}

Semantic roles & 50–950 ramp

primary
#797ACE
secondary
#E0E0C3
accent
#B82CBA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797ACE

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

Preview Lab → · Contrast checker → · Palette generator →

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