#797AFA#797AFA

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

Color values

HEX#797AFA
RGBrgb(121, 122, 250)
HSLhsl(240, 93%, 73%)
HSVhsv(240, 52%, 98%)
CMYKcmyk(51.6%, 51.2%, 0%, 2%)
CIE-LABlab(56.96, 33.68, -64.33)
CIE-LCHlch(56.96, 72.61, 297.64°)
OKLaboklab(64.23% 0.0306 -0.1836)
OKLCHoklch(64.23% 0.186 279.4)
XYZxyz(32.0946, 24.8842, 93.5359)
Luminance0.2489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AFA #FAF979
analogous
#79BAFA #797AFA #B879FA
triadic
#797AFA #FA797A #7AFA79
tetradic
#797AFA #FA79BA #FAF979 #79FAB8
square
#797AFA #FA79BA #FAF979 #79FAB8
split-complementary
#797AFA #FAB879 #BAFA79
monochromatic
#090BF0 #3E3FF8 #797AFA #B4B5FC #E2E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797AFA#FFFFFF#000000##000000
##797AFA1.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)
#378EFF
Deuteranopia (green-blind)
#2684F7
Tritanopia (blue-blind)
#4297AF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797afa;
/* rgb */ color: rgb(121, 122, 250);
/* oklch */ color: oklch(64.2% 0.186 279.4);
Tailwind
colors: {
  custom: {
    50: '#a8a0fd',
    500: '#797afa',
    950: '#000000',
  },
}
SCSS
$custom: #797afa;
$custom-light: #a8a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797afa",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 239.535,
    "s": 92.806,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64232,
    "c": 0.18617,
    "h": 279.4
  },
  "luminance": 0.24886
}

Semantic roles & 50–950 ramp

primary
#797AFA
secondary
#F6F6D5
accent
#E400E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E18
muted
#7F7E86

Preview Lab

Preview with #797AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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