#797DF2#797DF2

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

Color values

HEX#797DF2
RGBrgb(121, 125, 242)
HSLhsl(238, 82%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50%, 48.3%, 0%, 5.1%)
CIE-LABlab(57.21, 29.49, -59.50)
CIE-LCHlch(57.21, 66.40, 296.37°)
OKLaboklab(64.27% 0.0266 -0.1694)
OKLCHoklch(64.27% 0.172 278.9)
XYZxyz(31.2408, 25.1412, 87.1937)
Luminance0.2514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF2 #F2EE79
analogous
#79B9F2 #797DF2 #B179F2
triadic
#797DF2 #F2797D #7DF279
tetradic
#797DF2 #F279B9 #F2EE79 #79F2B1
square
#797DF2 #F279B9 #F2EE79 #79F2B1
split-complementary
#797DF2 #F2B179 #B9F279
monochromatic
#151CDB #4147ED #797DF2 #B1B3F7 #E3E4FC

Accessibility & contrast

On white

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

On black

6.03
#797DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF2#FFFFFF#000000##000000
##797DF21.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF6
Deuteranopia (green-blind)
#3B85EF
Tritanopia (blue-blind)
#4896AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797df2;
/* rgb */ color: rgb(121, 125, 242);
/* oklch */ color: oklch(64.3% 0.172 278.9);
Tailwind
colors: {
  custom: {
    50: '#a7a2f7',
    500: '#797df2',
    950: '#000000',
  },
}
SCSS
$custom: #797df2;
$custom-light: #a7a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#797df2",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 238.017,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64266,
    "c": 0.1715,
    "h": 278.9
  },
  "luminance": 0.25143
}

Semantic roles & 50–950 ramp

primary
#797DF2
secondary
#F3F2D3
accent
#D807DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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