#797FCB#797FCB

#797FCB is a light, moderate blue. Relative luminance 0.236; OKLCH L 62.4% C 0.114 H 279.1°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#797FCB
RGBrgb(121, 127, 203)
HSLhsl(236, 44%, 64%)
HSVhsv(236, 40%, 80%)
CMYKcmyk(40.4%, 37.4%, 0%, 20.4%)
CIE-LABlab(55.64, 16.83, -40.14)
CIE-LCHlch(55.64, 43.52, 292.75°)
OKLaboklab(62.39% 0.0181 -0.1128)
OKLCHoklch(62.39% 0.114 279.1)
XYZxyz(26.2509, 23.5544, 59.6516)
Luminance0.2356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FCB #CBC579
analogous
#79A8CB #797FCB #9C79CB
triadic
#797FCB #CB797F #7FCB79
tetradic
#797FCB #CB79A8 #CBC579 #79CB9C
square
#797FCB #CB79A8 #CBC579 #79CB9C
split-complementary
#797FCB #CB9C79 #A8CB79
monochromatic
#383F91 #4D55BA #797FCB #A5A9DC #D1D3ED

Accessibility & contrast

On white

3.68
#797FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#797FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FCB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FCB#FFFFFF#000000##000000
##797FCB1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6588CE
Deuteranopia (green-blind)
#6082C9
Tritanopia (blue-blind)
#608E9B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797fcb;
/* rgb */ color: rgb(121, 127, 203);
/* oklch */ color: oklch(62.4% 0.114 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4db',
    500: '#797fcb',
    950: '#000000',
  },
}
SCSS
$custom: #797fcb;
$custom-light: #a3a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#797fcb",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 203
  },
  "hsl": {
    "h": 235.61,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62393,
    "c": 0.11421,
    "h": 279.1
  },
  "luminance": 0.23555
}

Semantic roles & 50–950 ramp

primary
#797FCB
secondary
#DEDCC1
accent
#AD2EB7
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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