#797BDB#797BDB

#797BDB is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.5% C 0.143 H 280.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#797BDB
RGBrgb(121, 123, 219)
HSLhsl(239, 58%, 67%)
HSVhsv(239, 45%, 86%)
CMYKcmyk(44.7%, 43.8%, 0%, 14.1%)
CIE-LABlab(55.42, 23.84, -49.51)
CIE-LCHlch(55.42, 54.95, 295.71°)
OKLaboklab(62.5% 0.0261 -0.1401)
OKLCHoklch(62.5% 0.143 280.5)
XYZxyz(27.7505, 23.3440, 70.0477)
Luminance0.2334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BDB #DBD979
analogous
#79ACDB #797BDB #A879DB
triadic
#797BDB #DB797B #7BDB79
tetradic
#797BDB #DB79AC #DBD979 #79DBA8
square
#797BDB #DB79AC #DBD979 #79DBA8
split-complementary
#797BDB #DBA879 #ACDB79
monochromatic
#2E31AC #494BCE #797BDB #A9ABE8 #D9DAF5

Accessibility & contrast

On white

3.70
#797BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#797BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BDB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BDB#FFFFFF#000000##000000
##797BDB1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5688DF
Deuteranopia (green-blind)
#5081D9
Tritanopia (blue-blind)
#588FA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797bdb;
/* rgb */ color: rgb(121, 123, 219);
/* oklch */ color: oklch(62.5% 0.143 280.5);
Tailwind
colors: {
  custom: {
    50: '#a4a1e6',
    500: '#797bdb',
    950: '#000000',
  },
}
SCSS
$custom: #797bdb;
$custom-light: #a4a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#797bdb",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 219
  },
  "hsl": {
    "h": 238.776,
    "s": 57.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.62495,
    "c": 0.14253,
    "h": 280.5
  },
  "luminance": 0.23345
}

Semantic roles & 50–950 ramp

primary
#797BDB
secondary
#E8E7C8
accent
#C220C5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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