#797FD2#797FD2

#797FD2 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.8% C 0.124 H 279.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#797FD2
RGBrgb(121, 127, 210)
HSLhsl(236, 50%, 65%)
HSVhsv(236, 42%, 82%)
CMYKcmyk(42.4%, 39.5%, 0%, 17.6%)
CIE-LABlab(55.98, 18.83, -43.55)
CIE-LCHlch(55.98, 47.45, 293.39°)
OKLaboklab(62.77% 0.0195 -0.1227)
OKLCHoklch(62.77% 0.124 279)
XYZxyz(27.1039, 23.8956, 64.1445)
Luminance0.2390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FD2 #D2CC79
analogous
#79ACD2 #797FD2 #9F79D2
triadic
#797FD2 #D2797F #7FD279
tetradic
#797FD2 #D279AC #D2CC79 #79D29F
square
#797FD2 #D279AC #D2CC79 #79D29F
split-complementary
#797FD2 #D29F79 #ACD279
monochromatic
#343B9C #4B53C3 #797FD2 #A7ABE1 #D5D7F1

Accessibility & contrast

On white

3.63
#797FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#797FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FD2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FD2#FFFFFF#000000##000000
##797FD21.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD5
Deuteranopia (green-blind)
#5C83D0
Tritanopia (blue-blind)
#5D909E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fd2;
/* rgb */ color: rgb(121, 127, 210);
/* oklch */ color: oklch(62.8% 0.124 279.0);
Tailwind
colors: {
  custom: {
    50: '#a3a4e0',
    500: '#797fd2',
    950: '#000000',
  },
}
SCSS
$custom: #797fd2;
$custom-light: #a3a4e0;
$custom-dark: #000000;
JSON
{
  "hex": "#797fd2",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 210
  },
  "hsl": {
    "h": 235.955,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62769,
    "c": 0.12426,
    "h": 279
  },
  "luminance": 0.23897
}

Semantic roles & 50–950 ramp

primary
#797FD2
secondary
#E3E1C4
accent
#B328BD
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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