#797DF6#797DF6

#797DF6 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.5% C 0.177 H 278.8°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#797DF6
RGBrgb(121, 125, 246)
HSLhsl(238, 87%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(50.8%, 49.2%, 0%, 3.5%)
CIE-LABlab(57.45, 30.70, -61.34)
CIE-LCHlch(57.45, 68.59, 296.59°)
OKLaboklab(64.52% 0.027 -0.1748)
OKLCHoklch(64.52% 0.177 278.8)
XYZxyz(31.8482, 25.3841, 90.3923)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF6 #F6F279
analogous
#79BCF6 #797DF6 #B479F6
triadic
#797DF6 #F6797D #7DF679
tetradic
#797DF6 #F679BC #F6F279 #79F6B4
square
#797DF6 #F679BC #F6F279 #79F6B4
split-complementary
#797DF6 #F6B479 #BCF679
monochromatic
#0F16E5 #4045F2 #797DF6 #B2B5FA #E2E3FD

Accessibility & contrast

On white

3.46
#797DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#797DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF6
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF6#FFFFFF#000000##000000
##797DF61.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#438FFA
Deuteranopia (green-blind)
#3685F3
Tritanopia (blue-blind)
#4598AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797df6;
/* rgb */ color: rgb(121, 125, 246);
/* oklch */ color: oklch(64.5% 0.177 278.8);
Tailwind
colors: {
  custom: {
    50: '#a7a2fa',
    500: '#797df6',
    950: '#000000',
  },
}
SCSS
$custom: #797df6;
$custom-light: #a7a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797df6",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 238.08,
    "s": 87.413,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64519,
    "c": 0.1769,
    "h": 278.8
  },
  "luminance": 0.25386
}

Semantic roles & 50–950 ramp

primary
#797DF6
secondary
#F5F4D6
accent
#DD02E4
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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