#797BE4#797BE4

#797BE4 is a light, vivid blue. Relative luminance 0.238; OKLCH L 63.0% C 0.155 H 280.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#797BE4
RGBrgb(121, 123, 228)
HSLhsl(239, 66%, 68%)
HSVhsv(239, 47%, 89%)
CMYKcmyk(46.9%, 46.1%, 0%, 10.6%)
CIE-LABlab(55.92, 26.49, -53.77)
CIE-LCHlch(55.92, 59.94, 296.23°)
OKLaboklab(63.03% 0.0273 -0.1526)
OKLCHoklch(63.03% 0.155 280.1)
XYZxyz(28.9675, 23.8308, 76.4572)
Luminance0.2383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE4 #E4E279
analogous
#79B0E4 #797BE4 #AC79E4
triadic
#797BE4 #E4797B #7BE479
tetradic
#797BE4 #E479B0 #E4E279 #79E4AC
square
#797BE4 #E479B0 #E4E279 #79E4AC
split-complementary
#797BE4 #E4AC79 #B0E479
monochromatic
#2629BD #4649DA #797BE4 #ACADEE #DFDFF9

Accessibility & contrast

On white

3.64
#797BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#797BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE4
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE4#FFFFFF#000000##000000
##797BE41.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8AE8
Deuteranopia (green-blind)
#4782E2
Tritanopia (blue-blind)
#5391A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797be4;
/* rgb */ color: rgb(121, 123, 228);
/* oklch */ color: oklch(63.0% 0.155 280.1);
Tailwind
colors: {
  custom: {
    50: '#a5a1ed',
    500: '#797be4',
    950: '#000000',
  },
}
SCSS
$custom: #797be4;
$custom-light: #a5a1ed;
$custom-dark: #000000;
JSON
{
  "hex": "#797be4",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 228
  },
  "hsl": {
    "h": 238.879,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63029,
    "c": 0.15505,
    "h": 280.1
  },
  "luminance": 0.23832
}

Semantic roles & 50–950 ramp

primary
#797BE4
secondary
#ECECCC
accent
#CB17CE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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