#797BEB#797BEB

#797BEB is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.5% C 0.165 H 279.8°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#797BEB
RGBrgb(121, 123, 235)
HSLhsl(239, 74%, 70%)
HSVhsv(239, 49%, 92%)
CMYKcmyk(48.5%, 47.7%, 0%, 7.8%)
CIE-LABlab(56.31, 28.58, -57.04)
CIE-LCHlch(56.31, 63.80, 296.61°)
OKLaboklab(63.46% 0.0282 -0.1622)
OKLCHoklch(63.46% 0.165 279.8)
XYZxyz(29.9589, 24.2274, 81.6789)
Luminance0.2423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BEB #EBE979
analogous
#79B4EB #797BEB #B079EB
triadic
#797BEB #EB797B #7BEB79
tetradic
#797BEB #EB79B4 #EBE979 #79EBB0
square
#797BEB #EB79B4 #EBE979 #79EBB0
split-complementary
#797BEB #EBB079 #B4EB79
monochromatic
#1E21CB #4447E3 #797BEB #AEAFF3 #E4E4FB

Accessibility & contrast

On white

3.59
#797BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#797BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BEB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BEB#FFFFFF#000000##000000
##797BEB1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEF
Deuteranopia (green-blind)
#4083E9
Tritanopia (blue-blind)
#4E93A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797beb;
/* rgb */ color: rgb(121, 123, 235);
/* oklch */ color: oklch(63.5% 0.165 279.8);
Tailwind
colors: {
  custom: {
    50: '#a6a1f2',
    500: '#797beb',
    950: '#000000',
  },
}
SCSS
$custom: #797beb;
$custom-light: #a6a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#797beb",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 238.947,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63458,
    "c": 0.16465,
    "h": 279.8
  },
  "luminance": 0.24229
}

Semantic roles & 50–950 ramp

primary
#797BEB
secondary
#F0EFD0
accent
#D30FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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