#797DF3#797DF3

#797DF3 is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.3% C 0.173 H 278.9°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#797DF3
RGBrgb(121, 125, 243)
HSLhsl(238, 84%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50.2%, 48.6%, 0%, 4.7%)
CIE-LABlab(57.27, 29.79, -59.96)
CIE-LCHlch(57.27, 66.95, 296.42°)
OKLaboklab(64.33% 0.0267 -0.1708)
OKLCHoklch(64.33% 0.173 278.9)
XYZxyz(31.3914, 25.2014, 87.9869)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF3 #F3EF79
analogous
#79BAF3 #797DF3 #B279F3
triadic
#797DF3 #F3797D #7DF379
tetradic
#797DF3 #F379BA #F3EF79 #79F3B2
square
#797DF3 #F379BA #F3EF79 #79F3B2
split-complementary
#797DF3 #F3B279 #BAF379
monochromatic
#141ADE #4147EE #797DF3 #B1B3F8 #E3E4FC

Accessibility & contrast

On white

3.48
#797DF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#797DF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF3
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF3#FFFFFF#000000##000000
##797DF31.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF7
Deuteranopia (green-blind)
#3A85F0
Tritanopia (blue-blind)
#4897AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797df3;
/* rgb */ color: rgb(121, 125, 243);
/* oklch */ color: oklch(64.3% 0.173 278.9);
Tailwind
colors: {
  custom: {
    50: '#a7a2f8',
    500: '#797df3',
    950: '#000000',
  },
}
SCSS
$custom: #797df3;
$custom-light: #a7a2f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797df3",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 243
  },
  "hsl": {
    "h": 238.033,
    "s": 83.562,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64329,
    "c": 0.17286,
    "h": 278.9
  },
  "luminance": 0.25203
}

Semantic roles & 50–950 ramp

primary
#797DF3
secondary
#F4F3D4
accent
#D906E0
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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