#797BD3#797BD3

#797BD3 is a light, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.131 H 280.9°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#797BD3
RGBrgb(121, 123, 211)
HSLhsl(239, 51%, 65%)
HSVhsv(239, 43%, 83%)
CMYKcmyk(42.7%, 41.7%, 0%, 17.3%)
CIE-LABlab(55.00, 21.51, -45.67)
CIE-LCHlch(55.00, 50.48, 295.22°)
OKLaboklab(62.04% 0.0248 -0.1289)
OKLCHoklch(62.04% 0.131 280.9)
XYZxyz(26.7225, 22.9328, 64.6338)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BD3 #D3D179
analogous
#79A8D3 #797BD3 #A479D3
triadic
#797BD3 #D3797B #7BD379
tetradic
#797BD3 #D379A8 #D3D179 #79D3A4
square
#797BD3 #D379A8 #D3D179 #79D3A4
split-complementary
#797BD3 #D3A479 #A8D379
monochromatic
#34369E #4B4EC4 #797BD3 #A7A8E2 #D5D6F1

Accessibility & contrast

On white

3.76
#797BD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#797BD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BD3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BD3#FFFFFF#000000##000000
##797BD31.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B87D6
Deuteranopia (green-blind)
#5680D1
Tritanopia (blue-blind)
#5D8D9D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797bd3;
/* rgb */ color: rgb(121, 123, 211);
/* oklch */ color: oklch(62.0% 0.131 280.9);
Tailwind
colors: {
  custom: {
    50: '#a4a1e1',
    500: '#797bd3',
    950: '#000000',
  },
}
SCSS
$custom: #797bd3;
$custom-light: #a4a1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797bd3",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 211
  },
  "hsl": {
    "h": 238.667,
    "s": 50.562,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62037,
    "c": 0.13125,
    "h": 280.9
  },
  "luminance": 0.22934
}

Semantic roles & 50–950 ramp

primary
#797BD3
secondary
#E3E2C5
accent
#BB28BE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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