#797CF2#797CF2

#797CF2 is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.1% C 0.173 H 279.2°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#797CF2
RGBrgb(121, 124, 242)
HSLhsl(239, 82%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(50%, 48.8%, 0%, 5.1%)
CIE-LABlab(56.97, 30.08, -59.89)
CIE-LCHlch(56.97, 67.02, 296.67°)
OKLaboklab(64.08% 0.0277 -0.1706)
OKLCHoklch(64.08% 0.173 279.2)
XYZxyz(31.1149, 24.8893, 87.1518)
Luminance0.2489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF2 #F2EF79
analogous
#79B8F2 #797CF2 #B279F2
triadic
#797CF2 #F2797C #7CF279
tetradic
#797CF2 #F279B8 #F2EF79 #79F2B2
square
#797CF2 #F279B8 #F2EF79 #79F2B2
split-complementary
#797CF2 #F2B279 #B8F279
monochromatic
#151ADB #4145ED #797CF2 #B1B3F7 #E3E4FC

Accessibility & contrast

On white

3.51
#797CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#797CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CF2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CF2#FFFFFF#000000##000000
##797CF21.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#458EF6
Deuteranopia (green-blind)
#3984EF
Tritanopia (blue-blind)
#4996AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797cf2;
/* rgb */ color: rgb(121, 124, 242);
/* oklch */ color: oklch(64.1% 0.173 279.2);
Tailwind
colors: {
  custom: {
    50: '#a7a1f7',
    500: '#797cf2',
    950: '#000000',
  },
}
SCSS
$custom: #797cf2;
$custom-light: #a7a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf2",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 238.512,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64081,
    "c": 0.17283,
    "h": 279.2
  },
  "luminance": 0.24891
}

Semantic roles & 50–950 ramp

primary
#797CF2
secondary
#F3F3D3
accent
#D907DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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