#797FF0#797FF0

#797FF0 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.5% C 0.166 H 278.4°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#797FF0
RGBrgb(121, 127, 240)
HSLhsl(237, 80%, 71%)
HSVhsv(237, 50%, 94%)
CMYKcmyk(49.6%, 47.1%, 0%, 5.9%)
CIE-LABlab(57.59, 27.70, -57.78)
CIE-LCHlch(57.59, 64.08, 295.61°)
OKLaboklab(64.52% 0.0242 -0.1644)
OKLCHoklch(64.52% 0.166 278.4)
XYZxyz(31.1978, 25.5332, 85.7057)
Luminance0.2554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF0 #F0EA79
analogous
#79BAF0 #797FF0 #AE79F0
triadic
#797FF0 #F0797F #7FF079
tetradic
#797FF0 #F079BA #F0EA79 #79F0AE
square
#797FF0 #F079BA #F0EA79 #79F0AE
split-complementary
#797FF0 #F0AE79 #BAF079
monochromatic
#1822D7 #424AEA #797FF0 #B0B4F6 #E3E5FC

Accessibility & contrast

On white

3.44
#797FF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#797FF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF0
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF0#FFFFFF#000000##000000
##797FF01.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF4
Deuteranopia (green-blind)
#4286EE
Tritanopia (blue-blind)
#4A97AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ff0;
/* rgb */ color: rgb(121, 127, 240);
/* oklch */ color: oklch(64.5% 0.166 278.4);
Tailwind
colors: {
  custom: {
    50: '#a7a4f5',
    500: '#797ff0',
    950: '#000000',
  },
}
SCSS
$custom: #797ff0;
$custom-light: #a7a4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff0",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 240
  },
  "hsl": {
    "h": 236.975,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64515,
    "c": 0.16614,
    "h": 278.4
  },
  "luminance": 0.25535
}

Semantic roles & 50–950 ramp

primary
#797FF0
secondary
#F2F1D2
accent
#D209DC
background
#FAFAFF
surface
#F4F4FE
border
#CECED6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FF0

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

Preview Lab → · Contrast checker → · Palette generator →

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