#797FD5#797FD5

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

Color values

HEX#797FD5
RGBrgb(121, 127, 213)
HSLhsl(236, 52%, 65%)
HSVhsv(236, 43%, 84%)
CMYKcmyk(43.2%, 40.4%, 0%, 16.5%)
CIE-LABlab(56.13, 19.70, -45.00)
CIE-LCHlch(56.13, 49.13, 293.64°)
OKLaboklab(62.93% 0.0201 -0.1269)
OKLCHoklch(62.93% 0.129 279)
XYZxyz(27.4812, 24.0465, 66.1313)
Luminance0.2405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FD5 #D5CF79
analogous
#79ADD5 #797FD5 #A179D5
triadic
#797FD5 #D5797F #7FD579
tetradic
#797FD5 #D579AD #D5CF79 #79D5A1
square
#797FD5 #D579AD #D5CF79 #79D5A1
split-complementary
#797FD5 #D5A179 #ADD579
monochromatic
#323AA1 #4A52C6 #797FD5 #A8ACE4 #D6D8F2

Accessibility & contrast

On white

3.61
#797FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#797FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FD5
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FD5#FFFFFF#000000##000000
##797FD51.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#608AD8
Deuteranopia (green-blind)
#5A83D3
Tritanopia (blue-blind)
#5B90A0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797fd5;
/* rgb */ color: rgb(121, 127, 213);
/* oklch */ color: oklch(62.9% 0.129 279.0);
Tailwind
colors: {
  custom: {
    50: '#a4a4e2',
    500: '#797fd5',
    950: '#000000',
  },
}
SCSS
$custom: #797fd5;
$custom-light: #a4a4e2;
$custom-dark: #000000;
JSON
{
  "hex": "#797fd5",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 213
  },
  "hsl": {
    "h": 236.087,
    "s": 52.273,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62934,
    "c": 0.12853,
    "h": 279
  },
  "luminance": 0.24048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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