#797CDF#797CDF

#797CDF is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.9% C 0.147 H 280.0°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#797CDF
RGBrgb(121, 124, 223)
HSLhsl(238, 61%, 67%)
HSVhsv(238, 46%, 87%)
CMYKcmyk(45.7%, 44.4%, 0%, 12.5%)
CIE-LABlab(55.89, 24.42, -51.01)
CIE-LCHlch(55.89, 56.55, 295.58°)
OKLaboklab(62.92% 0.0255 -0.1445)
OKLCHoklch(62.92% 0.147 280)
XYZxyz(28.4081, 23.8065, 72.8960)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CDF #DFDC79
analogous
#79AFDF #797CDF #A979DF
triadic
#797CDF #DF797C #7CDF79
tetradic
#797CDF #DF79AF #DFDC79 #79DFA9
square
#797CDF #DF79AF #DFDC79 #79DFA9
split-complementary
#797CDF #DFA979 #AFDF79
monochromatic
#2B2FB3 #484CD3 #797CDF #AAACEB #DCDDF7

Accessibility & contrast

On white

3.64
#797CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#797CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CDF
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CDF#FFFFFF#000000##000000
##797CDF1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#558AE3
Deuteranopia (green-blind)
#4E82DD
Tritanopia (blue-blind)
#5691A3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797cdf;
/* rgb */ color: rgb(121, 124, 223);
/* oklch */ color: oklch(62.9% 0.147 280.0);
Tailwind
colors: {
  custom: {
    50: '#a5a1e9',
    500: '#797cdf',
    950: '#000000',
  },
}
SCSS
$custom: #797cdf;
$custom-light: #a5a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#797cdf",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 223
  },
  "hsl": {
    "h": 238.235,
    "s": 61.446,
    "l": 67.451
  },
  "oklch": {
    "l": 0.62922,
    "c": 0.14674,
    "h": 280
  },
  "luminance": 0.23808
}

Semantic roles & 50–950 ramp

primary
#797CDF
secondary
#EAE9CA
accent
#C41CC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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