#797FCC#797FCC

#797FCC is a light, moderate blue. Relative luminance 0.236; OKLCH L 62.4% C 0.116 H 279.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#797FCC
RGBrgb(121, 127, 204)
HSLhsl(236, 45%, 64%)
HSVhsv(236, 41%, 80%)
CMYKcmyk(40.7%, 37.7%, 0%, 20%)
CIE-LABlab(55.69, 17.11, -40.63)
CIE-LCHlch(55.69, 44.08, 292.84°)
OKLaboklab(62.45% 0.0183 -0.1142)
OKLCHoklch(62.45% 0.116 279.1)
XYZxyz(26.3704, 23.6022, 60.2812)
Luminance0.2360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FCC #CCC679
analogous
#79A8CC #797FCC #9C79CC
triadic
#797FCC #CC797F #7FCC79
tetradic
#797FCC #CC79A8 #CCC679 #79CC9C
square
#797FCC #CC79A8 #CCC679 #79CC9C
split-complementary
#797FCC #CC9C79 #A8CC79
monochromatic
#383E93 #4D55BB #797FCC #A5A9DD #D2D4EE

Accessibility & contrast

On white

3.67
#797FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#797FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FCC
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FCC#FFFFFF#000000##000000
##797FCC1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6589CF
Deuteranopia (green-blind)
#5F82CA
Tritanopia (blue-blind)
#608E9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797fcc;
/* rgb */ color: rgb(121, 127, 204);
/* oklch */ color: oklch(62.4% 0.116 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4dc',
    500: '#797fcc',
    950: '#000000',
  },
}
SCSS
$custom: #797fcc;
$custom-light: #a3a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797fcc",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 204
  },
  "hsl": {
    "h": 235.663,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62446,
    "c": 0.11565,
    "h": 279.1
  },
  "luminance": 0.23603
}

Semantic roles & 50–950 ramp

primary
#797FCC
secondary
#DFDDC2
accent
#AE2DB8
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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