#797DEF#797DEF

#797DEF is a light, vivid blue. Relative luminance 0.250; OKLCH L 64.1% C 0.167 H 279.0°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#797DEF
RGBrgb(121, 125, 239)
HSLhsl(238, 79%, 71%)
HSVhsv(238, 49%, 94%)
CMYKcmyk(49.4%, 47.7%, 0%, 6.3%)
CIE-LABlab(57.04, 28.59, -58.11)
CIE-LCHlch(57.04, 64.76, 296.19°)
OKLaboklab(64.08% 0.0263 -0.1653)
OKLCHoklch(64.08% 0.167 279)
XYZxyz(30.7940, 24.9624, 84.8402)
Luminance0.2496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DEF #EFEB79
analogous
#79B8EF #797DEF #B079EF
triadic
#797DEF #EF797D #7DEF79
tetradic
#797DEF #EF79B8 #EFEB79 #79EFB0
square
#797DEF #EF79B8 #EFEB79 #79EFB0
split-complementary
#797DEF #EFB079 #B8EF79
monochromatic
#1920D4 #4248E8 #797DEF #B0B2F6 #E4E4FC

Accessibility & contrast

On white

3.50
#797DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#797DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DEF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DEF#FFFFFF#000000##000000
##797DEF1.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8EF3
Deuteranopia (green-blind)
#3F84ED
Tritanopia (blue-blind)
#4B96AB
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797def;
/* rgb */ color: rgb(121, 125, 239);
/* oklch */ color: oklch(64.1% 0.167 279.0);
Tailwind
colors: {
  custom: {
    50: '#a7a2f5',
    500: '#797def',
    950: '#000000',
  },
}
SCSS
$custom: #797def;
$custom-light: #a7a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797def",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 237.966,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.64079,
    "c": 0.16743,
    "h": 279
  },
  "luminance": 0.24964
}

Semantic roles & 50–950 ramp

primary
#797DEF
secondary
#F2F1D2
accent
#D40BDB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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