#797CDB#797CDB

#797CDB is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.7% C 0.141 H 280.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#797CDB
RGBrgb(121, 124, 219)
HSLhsl(238, 58%, 67%)
HSVhsv(238, 45%, 86%)
CMYKcmyk(44.7%, 43.4%, 0%, 14.1%)
CIE-LABlab(55.68, 23.24, -49.10)
CIE-LCHlch(55.68, 54.33, 295.33°)
OKLaboklab(62.69% 0.0248 -0.1389)
OKLCHoklch(62.69% 0.141 280.1)
XYZxyz(27.8752, 23.5934, 70.0893)
Luminance0.2359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CDB #DBD879
analogous
#79ADDB #797CDB #A779DB
triadic
#797CDB #DB797C #7CDB79
tetradic
#797CDB #DB79AD #DBD879 #79DBA7
square
#797CDB #DB79AD #DBD879 #79DBA7
split-complementary
#797CDB #DBA779 #ADDB79
monochromatic
#2E32AC #494DCE #797CDB #A9ABE8 #D9DAF5

Accessibility & contrast

On white

3.67
#797CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#797CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CDB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CDB#FFFFFF#000000##000000
##797CDB1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5789DF
Deuteranopia (green-blind)
#5182D9
Tritanopia (blue-blind)
#5890A1
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797cdb;
/* rgb */ color: rgb(121, 124, 219);
/* oklch */ color: oklch(62.7% 0.141 280.1);
Tailwind
colors: {
  custom: {
    50: '#a4a1e6',
    500: '#797cdb',
    950: '#000000',
  },
}
SCSS
$custom: #797cdb;
$custom-light: #a4a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#797cdb",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 238.163,
    "s": 57.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.62688,
    "c": 0.14115,
    "h": 280.1
  },
  "luminance": 0.23595
}

Semantic roles & 50–950 ramp

primary
#797CDB
secondary
#E8E7C8
accent
#C020C5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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