#797DCF#797DCF

#797DCF is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.2% C 0.123 H 280.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#797DCF
RGBrgb(121, 125, 207)
HSLhsl(237, 47%, 64%)
HSVhsv(237, 42%, 81%)
CMYKcmyk(41.5%, 39.6%, 0%, 18.8%)
CIE-LABlab(55.31, 19.16, -42.91)
CIE-LCHlch(55.31, 47.00, 294.06°)
OKLaboklab(62.21% 0.0215 -0.1209)
OKLCHoklch(62.21% 0.123 280.1)
XYZxyz(26.4779, 23.2360, 62.1093)
Luminance0.2324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DCF #CFCB79
analogous
#79A8CF #797DCF #A079CF
triadic
#797DCF #CF797D #7DCF79
tetradic
#797DCF #CF79A8 #CFCB79 #79CFA0
square
#797DCF #CF79A8 #CFCB79 #79CFA0
split-complementary
#797DCF #CFA079 #A8CF79
monochromatic
#363B97 #4C51BF #797DCF #A6A9DF #D3D4EF

Accessibility & contrast

On white

3.72
#797DCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#797DCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DCF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DCF#FFFFFF#000000##000000
##797DCF1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6088D2
Deuteranopia (green-blind)
#5B81CD
Tritanopia (blue-blind)
#5E8D9C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dcf;
/* rgb */ color: rgb(121, 125, 207);
/* oklch */ color: oklch(62.2% 0.123 280.1);
Tailwind
colors: {
  custom: {
    50: '#a3a2de',
    500: '#797dcf',
    950: '#000000',
  },
}
SCSS
$custom: #797dcf;
$custom-light: #a3a2de;
$custom-dark: #000000;
JSON
{
  "hex": "#797dcf",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 207
  },
  "hsl": {
    "h": 237.209,
    "s": 47.253,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62208,
    "c": 0.12275,
    "h": 280.1
  },
  "luminance": 0.23237
}

Semantic roles & 50–950 ramp

primary
#797DCF
secondary
#E1DFC3
accent
#B42BBB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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