#797BF6#797BF6

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

Color values

HEX#797BF6
RGBrgb(121, 123, 246)
HSLhsl(239, 87%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(50.8%, 50%, 0%, 3.5%)
CIE-LABlab(56.96, 31.88, -62.12)
CIE-LCHlch(56.96, 69.82, 297.17°)
OKLaboklab(64.15% 0.0292 -0.1771)
OKLCHoklch(64.15% 0.18 279.4)
XYZxyz(31.5975, 24.8828, 90.3088)
Luminance0.2488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF6 #F6F479
analogous
#79BAF6 #797BF6 #B679F6
triadic
#797BF6 #F6797B #7BF679
tetradic
#797BF6 #F679BA #F6F479 #79F6B6
square
#797BF6 #F679BA #F6F479 #79F6B6
split-complementary
#797BF6 #F6B679 #BAF679
monochromatic
#0F13E5 #4043F2 #797BF6 #B2B3FA #E2E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797BF6#FFFFFF#000000##000000
##797BF61.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)
#3E8EFA
Deuteranopia (green-blind)
#3184F3
Tritanopia (blue-blind)
#4596AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797bf6;
/* rgb */ color: rgb(121, 123, 246);
/* oklch */ color: oklch(64.2% 0.180 279.4);
Tailwind
colors: {
  custom: {
    50: '#a8a1fa',
    500: '#797bf6',
    950: '#000000',
  },
}
SCSS
$custom: #797bf6;
$custom-light: #a8a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf6",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 239.04,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64153,
    "c": 0.17953,
    "h": 279.4
  },
  "luminance": 0.24885
}

Semantic roles & 50–950 ramp

primary
#797BF6
secondary
#F5F5D6
accent
#E002E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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