#797CCF#797CCF

#797CCF is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.0% C 0.124 H 280.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#797CCF
RGBrgb(121, 124, 207)
HSLhsl(238, 47%, 64%)
HSVhsv(238, 42%, 81%)
CMYKcmyk(41.5%, 40.1%, 0%, 18.8%)
CIE-LABlab(55.06, 19.76, -43.32)
CIE-LCHlch(55.06, 47.61, 294.52°)
OKLaboklab(62.01% 0.0227 -0.122)
OKLCHoklch(62.01% 0.124 280.6)
XYZxyz(26.3520, 22.9841, 62.0673)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CCF #CFCC79
analogous
#79A7CF #797CCF #A179CF
triadic
#797CCF #CF797C #7CCF79
tetradic
#797CCF #CF79A7 #CFCC79 #79CFA1
square
#797CCF #CF79A7 #CFCC79 #79CFA1
split-complementary
#797CCF #CFA179 #A7CF79
monochromatic
#363A97 #4C50BF #797CCF #A6A8DF #D3D4EF

Accessibility & contrast

On white

3.75
#797CCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#797CCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CCF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CCF#FFFFFF#000000##000000
##797CCF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D2
Deuteranopia (green-blind)
#5A81CD
Tritanopia (blue-blind)
#5E8D9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ccf;
/* rgb */ color: rgb(121, 124, 207);
/* oklch */ color: oklch(62.0% 0.124 280.6);
Tailwind
colors: {
  custom: {
    50: '#a3a1de',
    500: '#797ccf',
    950: '#000000',
  },
}
SCSS
$custom: #797ccf;
$custom-light: #a3a1de;
$custom-dark: #000000;
JSON
{
  "hex": "#797ccf",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 207
  },
  "hsl": {
    "h": 237.907,
    "s": 47.253,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62011,
    "c": 0.12415,
    "h": 280.6
  },
  "luminance": 0.22985
}

Semantic roles & 50–950 ramp

primary
#797CCF
secondary
#E1E0C3
accent
#B52BBB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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