#797DDD#797DDD

#797DDD is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.0% C 0.143 H 279.7°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#797DDD
RGBrgb(121, 125, 221)
HSLhsl(238, 60%, 67%)
HSVhsv(238, 45%, 87%)
CMYKcmyk(45.2%, 43.4%, 0%, 13.3%)
CIE-LABlab(56.04, 23.23, -49.65)
CIE-LCHlch(56.04, 54.82, 295.07°)
OKLaboklab(63% 0.0239 -0.1405)
OKLCHoklch(63% 0.143 279.7)
XYZxyz(28.2660, 23.9512, 71.5263)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DDD #DDD979
analogous
#79AFDD #797DDD #A779DD
triadic
#797DDD #DD797D #7DDD79
tetradic
#797DDD #DD79AF #DDD979 #79DDA7
square
#797DDD #DD79AF #DDD979 #79DDA7
split-complementary
#797DDD #DDA779 #AFDD79
monochromatic
#2C32AF #484ED1 #797DDD #AAACE9 #DBDCF6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DDD#FFFFFF#000000##000000
##797DDD1.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)
#588AE1
Deuteranopia (green-blind)
#5183DB
Tritanopia (blue-blind)
#5791A2
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ddd;
/* rgb */ color: rgb(121, 125, 221);
/* oklch */ color: oklch(63.0% 0.143 279.7);
Tailwind
colors: {
  custom: {
    50: '#a5a2e8',
    500: '#797ddd',
    950: '#000000',
  },
}
SCSS
$custom: #797ddd;
$custom-light: #a5a2e8;
$custom-dark: #000000;
JSON
{
  "hex": "#797ddd",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 221
  },
  "hsl": {
    "h": 237.6,
    "s": 59.524,
    "l": 67.059
  },
  "oklch": {
    "l": 0.62997,
    "c": 0.14257,
    "h": 279.7
  },
  "luminance": 0.23953
}

Semantic roles & 50–950 ramp

primary
#797DDD
secondary
#E9E8C9
accent
#C01EC7
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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