#797FD3#797FD3

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

Color values

HEX#797FD3
RGBrgb(121, 127, 211)
HSLhsl(236, 51%, 65%)
HSVhsv(236, 43%, 83%)
CMYKcmyk(42.7%, 39.8%, 0%, 17.3%)
CIE-LABlab(56.03, 19.12, -44.04)
CIE-LCHlch(56.03, 48.01, 293.47°)
OKLaboklab(62.82% 0.0197 -0.1241)
OKLCHoklch(62.82% 0.126 279)
XYZxyz(27.2289, 23.9456, 64.8026)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FD3 #D3CD79
analogous
#79ACD3 #797FD3 #A079D3
triadic
#797FD3 #D3797F #7FD379
tetradic
#797FD3 #D379AC #D3CD79 #79D3A0
square
#797FD3 #D379AC #D3CD79 #79D3A0
split-complementary
#797FD3 #D3A079 #ACD379
monochromatic
#343B9E #4B53C4 #797FD3 #A7ABE2 #D5D7F1

Accessibility & contrast

On white

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

On black

5.79
#797FD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FD3
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FD3#FFFFFF#000000##000000
##797FD31.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD6
Deuteranopia (green-blind)
#5B83D1
Tritanopia (blue-blind)
#5C909F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fd3;
/* rgb */ color: rgb(121, 127, 211);
/* oklch */ color: oklch(62.8% 0.126 279.0);
Tailwind
colors: {
  custom: {
    50: '#a4a4e1',
    500: '#797fd3',
    950: '#000000',
  },
}
SCSS
$custom: #797fd3;
$custom-light: #a4a4e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797fd3",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 211
  },
  "hsl": {
    "h": 236,
    "s": 50.562,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62824,
    "c": 0.12569,
    "h": 279
  },
  "luminance": 0.23947
}

Semantic roles & 50–950 ramp

primary
#797FD3
secondary
#E3E1C5
accent
#B428BE
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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