#797AF6#797AF6

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

Color values

HEX#797AF6
RGBrgb(121, 122, 246)
HSLhsl(240, 87%, 72%)
HSVhsv(240, 51%, 96%)
CMYKcmyk(50.8%, 50.4%, 0%, 3.5%)
CIE-LABlab(56.72, 32.48, -62.51)
CIE-LCHlch(56.72, 70.44, 297.45°)
OKLaboklab(63.97% 0.0303 -0.1783)
OKLCHoklch(63.97% 0.181 279.6)
XYZxyz(31.4741, 24.6360, 90.2677)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF6 #F6F579
analogous
#79B9F6 #797AF6 #B779F6
triadic
#797AF6 #F6797A #7AF679
tetradic
#797AF6 #F679B9 #F6F579 #79F6B7
square
#797AF6 #F679B9 #F6F579 #79F6B7
split-complementary
#797AF6 #F6B779 #B9F679
monochromatic
#0F11E5 #4041F2 #797AF6 #B2B3FA #E2E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797AF6#FFFFFF#000000##000000
##797AF61.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)
#3C8DFA
Deuteranopia (green-blind)
#2E83F3
Tritanopia (blue-blind)
#4595AD
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797af6;
/* rgb */ color: rgb(121, 122, 246);
/* oklch */ color: oklch(64.0% 0.181 279.6);
Tailwind
colors: {
  custom: {
    50: '#a8a0fa',
    500: '#797af6',
    950: '#000000',
  },
}
SCSS
$custom: #797af6;
$custom-light: #a8a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797af6",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 239.52,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.63971,
    "c": 0.18084,
    "h": 279.6
  },
  "luminance": 0.24638
}

Semantic roles & 50–950 ramp

primary
#797AF6
secondary
#F5F5D6
accent
#E202E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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