#797FD4#797FD4

#797FD4 is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.9% C 0.127 H 279.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#797FD4
RGBrgb(121, 127, 212)
HSLhsl(236, 51%, 65%)
HSVhsv(236, 43%, 83%)
CMYKcmyk(42.9%, 40.1%, 0%, 16.9%)
CIE-LABlab(56.08, 19.41, -44.52)
CIE-LCHlch(56.08, 48.57, 293.56°)
OKLaboklab(62.88% 0.0199 -0.1255)
OKLCHoklch(62.88% 0.127 279)
XYZxyz(27.3547, 23.9959, 65.4649)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FD4 #D4CE79
analogous
#79ACD4 #797FD4 #A079D4
triadic
#797FD4 #D4797F #7FD479
tetradic
#797FD4 #D479AC #D4CE79 #79D4A0
square
#797FD4 #D479AC #D4CE79 #79D4A0
split-complementary
#797FD4 #D4A079 #ACD479
monochromatic
#333A9F #4B53C5 #797FD4 #A7ABE3 #D6D8F2

Accessibility & contrast

On white

3.62
#797FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#797FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FD4
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FD4#FFFFFF#000000##000000
##797FD41.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#608AD7
Deuteranopia (green-blind)
#5A83D2
Tritanopia (blue-blind)
#5C909F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fd4;
/* rgb */ color: rgb(121, 127, 212);
/* oklch */ color: oklch(62.9% 0.127 279.0);
Tailwind
colors: {
  custom: {
    50: '#a4a4e1',
    500: '#797fd4',
    950: '#000000',
  },
}
SCSS
$custom: #797fd4;
$custom-light: #a4a4e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797fd4",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 212
  },
  "hsl": {
    "h": 236.044,
    "s": 51.412,
    "l": 65.294
  },
  "oklch": {
    "l": 0.62879,
    "c": 0.12711,
    "h": 279
  },
  "luminance": 0.23997
}

Semantic roles & 50–950 ramp

primary
#797FD4
secondary
#E4E2C5
accent
#B527BF
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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