#797EDB#797EDB

#797EDB is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.1% C 0.138 H 279.3°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#797EDB
RGBrgb(121, 126, 219)
HSLhsl(237, 58%, 67%)
HSVhsv(237, 45%, 86%)
CMYKcmyk(44.7%, 42.5%, 0%, 14.1%)
CIE-LABlab(56.19, 22.05, -48.30)
CIE-LCHlch(56.19, 53.09, 294.54°)
OKLaboklab(63.08% 0.0224 -0.1366)
OKLCHoklch(63.08% 0.138 279.3)
XYZxyz(28.1283, 24.0998, 70.1737)
Luminance0.2410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EDB #DBD679
analogous
#79AFDB #797EDB #A579DB
triadic
#797EDB #DB797E #7EDB79
tetradic
#797EDB #DB79AF #DBD679 #79DBA5
square
#797EDB #DB79AF #DBD679 #79DBA5
split-complementary
#797EDB #DBA579 #AFDB79
monochromatic
#2E34AC #4950CE #797EDB #A9ACE8 #D9DBF5

Accessibility & contrast

On white

3.61
#797EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#797EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EDB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EDB#FFFFFF#000000##000000
##797EDB1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8BDF
Deuteranopia (green-blind)
#5483D9
Tritanopia (blue-blind)
#5891A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797edb;
/* rgb */ color: rgb(121, 126, 219);
/* oklch */ color: oklch(63.1% 0.138 279.3);
Tailwind
colors: {
  custom: {
    50: '#a4a3e6',
    500: '#797edb',
    950: '#000000',
  },
}
SCSS
$custom: #797edb;
$custom-light: #a4a3e6;
$custom-dark: #000000;
JSON
{
  "hex": "#797edb",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 219
  },
  "hsl": {
    "h": 236.939,
    "s": 57.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.63076,
    "c": 0.13839,
    "h": 279.3
  },
  "luminance": 0.24101
}

Semantic roles & 50–950 ramp

primary
#797EDB
secondary
#E8E6C8
accent
#BD20C5
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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