#797BF2#797BF2

#797BF2 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.9% C 0.174 H 279.5°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#797BF2
RGBrgb(121, 123, 242)
HSLhsl(239, 82%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(50%, 49.2%, 0%, 5.1%)
CIE-LABlab(56.72, 30.68, -60.28)
CIE-LCHlch(56.72, 67.64, 296.97°)
OKLaboklab(63.9% 0.0289 -0.1717)
OKLCHoklch(63.9% 0.174 279.5)
XYZxyz(30.9902, 24.6399, 87.1102)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF2 #F2F079
analogous
#79B7F2 #797BF2 #B379F2
triadic
#797BF2 #F2797B #7BF279
tetradic
#797BF2 #F279B7 #F2F079 #79F2B3
square
#797BF2 #F279B7 #F2F079 #79F2B3
split-complementary
#797BF2 #F2B379 #B7F279
monochromatic
#1519DB #4144ED #797BF2 #B1B2F7 #E3E4FC

Accessibility & contrast

On white

3.54
#797BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#797BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF2#FFFFFF#000000##000000
##797BF21.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#438DF6
Deuteranopia (green-blind)
#3784EF
Tritanopia (blue-blind)
#4995AB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797bf2;
/* rgb */ color: rgb(121, 123, 242);
/* oklch */ color: oklch(63.9% 0.174 279.5);
Tailwind
colors: {
  custom: {
    50: '#a7a1f7',
    500: '#797bf2',
    950: '#000000',
  },
}
SCSS
$custom: #797bf2;
$custom-light: #a7a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf2",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 239.008,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.63897,
    "c": 0.17415,
    "h": 279.5
  },
  "luminance": 0.24642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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