#797DD4#797DD4

#797DD4 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.5% C 0.130 H 279.9°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#797DD4
RGBrgb(121, 125, 212)
HSLhsl(237, 51%, 65%)
HSVhsv(237, 43%, 83%)
CMYKcmyk(42.9%, 41%, 0%, 16.9%)
CIE-LABlab(55.57, 20.60, -45.34)
CIE-LCHlch(55.57, 49.80, 294.44°)
OKLaboklab(62.49% 0.0224 -0.1279)
OKLCHoklch(62.49% 0.13 279.9)
XYZxyz(27.0989, 23.4844, 65.3797)
Luminance0.2349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DD4 #D4D079
analogous
#79AAD4 #797DD4 #A379D4
triadic
#797DD4 #D4797D #7DD479
tetradic
#797DD4 #D479AA #D4D079 #79D4A3
square
#797DD4 #D479AA #D4D079 #79D4A3
split-complementary
#797DD4 #D4A379 #AAD479
monochromatic
#33389F #4B50C5 #797DD4 #A7AAE3 #D6D7F2

Accessibility & contrast

On white

3.69
#797DD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#797DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DD4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DD4#FFFFFF#000000##000000
##797DD41.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D89D7
Deuteranopia (green-blind)
#5882D2
Tritanopia (blue-blind)
#5C8F9E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797dd4;
/* rgb */ color: rgb(121, 125, 212);
/* oklch */ color: oklch(62.5% 0.130 279.9);
Tailwind
colors: {
  custom: {
    50: '#a4a2e1',
    500: '#797dd4',
    950: '#000000',
  },
}
SCSS
$custom: #797dd4;
$custom-light: #a4a2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797dd4",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 212
  },
  "hsl": {
    "h": 237.363,
    "s": 51.412,
    "l": 65.294
  },
  "oklch": {
    "l": 0.62485,
    "c": 0.12988,
    "h": 279.9
  },
  "luminance": 0.23486
}

Semantic roles & 50–950 ramp

primary
#797DD4
secondary
#E4E2C5
accent
#B827BF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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