#797FF2#797FF2

#797FF2 is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.6% C 0.169 H 278.3°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#797FF2
RGBrgb(121, 127, 242)
HSLhsl(237, 82%, 71%)
HSVhsv(237, 50%, 95%)
CMYKcmyk(50%, 47.5%, 0%, 5.1%)
CIE-LABlab(57.71, 28.30, -58.71)
CIE-LCHlch(57.71, 65.17, 295.74°)
OKLaboklab(64.64% 0.0244 -0.1671)
OKLCHoklch(64.64% 0.169 278.3)
XYZxyz(31.4966, 25.6527, 87.2790)
Luminance0.2565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF2 #F2EC79
analogous
#79BBF2 #797FF2 #AF79F2
triadic
#797FF2 #F2797F #7FF279
tetradic
#797FF2 #F279BB #F2EC79 #79F2AF
square
#797FF2 #F279BB #F2EC79 #79F2AF
split-complementary
#797FF2 #F2AF79 #BBF279
monochromatic
#151FDB #414AED #797FF2 #B1B4F7 #E3E4FC

Accessibility & contrast

On white

3.43
#797FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#797FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF2#FFFFFF#000000##000000
##797FF21.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B90F6
Deuteranopia (green-blind)
#3F86EF
Tritanopia (blue-blind)
#4898AD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ff2;
/* rgb */ color: rgb(121, 127, 242);
/* oklch */ color: oklch(64.6% 0.169 278.3);
Tailwind
colors: {
  custom: {
    50: '#a7a4f7',
    500: '#797ff2',
    950: '#000000',
  },
}
SCSS
$custom: #797ff2;
$custom-light: #a7a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff2",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 237.025,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64639,
    "c": 0.16886,
    "h": 278.3
  },
  "luminance": 0.25654
}

Semantic roles & 50–950 ramp

primary
#797FF2
secondary
#F3F2D3
accent
#D407DF
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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