#797DCC#797DCC

#797DCC is a light, moderate blue. Relative luminance 0.231; OKLCH L 62.0% C 0.118 H 280.1°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#797DCC
RGBrgb(121, 125, 204)
HSLhsl(237, 45%, 64%)
HSVhsv(237, 41%, 80%)
CMYKcmyk(40.7%, 38.7%, 0%, 20%)
CIE-LABlab(55.17, 18.30, -41.45)
CIE-LCHlch(55.17, 45.31, 293.83°)
OKLaboklab(62.05% 0.0209 -0.1166)
OKLCHoklch(62.05% 0.118 280.1)
XYZxyz(26.1147, 23.0907, 60.1960)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DCC #CCC879
analogous
#79A6CC #797DCC #9E79CC
triadic
#797DCC #CC797D #7DCC79
tetradic
#797DCC #CC79A6 #CCC879 #79CC9E
square
#797DCC #CC79A6 #CCC879 #79CC9E
split-complementary
#797DCC #CC9E79 #A6CC79
monochromatic
#383C93 #4D52BB #797DCC #A5A8DD #D2D3EE

Accessibility & contrast

On white

3.74
#797DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#797DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DCC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DCC#FFFFFF#000000##000000
##797DCC1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CF
Deuteranopia (green-blind)
#5D81CA
Tritanopia (blue-blind)
#608D9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dcc;
/* rgb */ color: rgb(121, 125, 204);
/* oklch */ color: oklch(62.0% 0.118 280.1);
Tailwind
colors: {
  custom: {
    50: '#a3a2dc',
    500: '#797dcc',
    950: '#000000',
  },
}
SCSS
$custom: #797dcc;
$custom-light: #a3a2dc;
$custom-dark: #000000;
JSON
{
  "hex": "#797dcc",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 204
  },
  "hsl": {
    "h": 237.108,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62046,
    "c": 0.11844,
    "h": 280.1
  },
  "luminance": 0.23092
}

Semantic roles & 50–950 ramp

primary
#797DCC
secondary
#DFDEC2
accent
#B12DB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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