#797DDC#797DDC

#797DDC is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.9% C 0.141 H 279.7°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#797DDC
RGBrgb(121, 125, 220)
HSLhsl(238, 59%, 67%)
HSVhsv(238, 45%, 86%)
CMYKcmyk(45%, 43.2%, 0%, 13.7%)
CIE-LABlab(55.99, 22.94, -49.18)
CIE-LCHlch(55.99, 54.26, 295.00°)
OKLaboklab(62.94% 0.0238 -0.1392)
OKLCHoklch(62.94% 0.141 279.7)
XYZxyz(28.1332, 23.8981, 70.8267)
Luminance0.2390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DDC #DCD879
analogous
#79AFDC #797DDC #A779DC
triadic
#797DDC #DC797D #7DDC79
tetradic
#797DDC #DC79AF #DCD879 #79DCA7
square
#797DDC #DC79AF #DCD879 #79DCA7
split-complementary
#797DDC #DCA779 #AFDC79
monochromatic
#2D32AD #484ECF #797DDC #AAACE9 #DADBF5

Accessibility & contrast

On white

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

On black

5.78
#797DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DDC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DDC#FFFFFF#000000##000000
##797DDC1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#588AE0
Deuteranopia (green-blind)
#5283DA
Tritanopia (blue-blind)
#5791A2
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ddc;
/* rgb */ color: rgb(121, 125, 220);
/* oklch */ color: oklch(62.9% 0.141 279.7);
Tailwind
colors: {
  custom: {
    50: '#a5a2e7',
    500: '#797ddc',
    950: '#000000',
  },
}
SCSS
$custom: #797ddc;
$custom-light: #a5a2e7;
$custom-dark: #000000;
JSON
{
  "hex": "#797ddc",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 220
  },
  "hsl": {
    "h": 237.576,
    "s": 58.58,
    "l": 66.863
  },
  "oklch": {
    "l": 0.62939,
    "c": 0.14118,
    "h": 279.7
  },
  "luminance": 0.23899
}

Semantic roles & 50–950 ramp

primary
#797DDC
secondary
#E8E7C9
accent
#BF1FC6
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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