#797BE3#797BE3

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

Color values

HEX#797BE3
RGBrgb(121, 123, 227)
HSLhsl(239, 65%, 68%)
HSVhsv(239, 47%, 89%)
CMYKcmyk(46.7%, 45.8%, 0%, 11%)
CIE-LABlab(55.86, 26.19, -53.30)
CIE-LCHlch(55.86, 59.39, 296.17°)
OKLaboklab(62.97% 0.0272 -0.1512)
OKLCHoklch(62.97% 0.154 280.2)
XYZxyz(28.8290, 23.7754, 75.7282)
Luminance0.2378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE3 #E3E179
analogous
#79B0E3 #797BE3 #AC79E3
triadic
#797BE3 #E3797B #7BE379
tetradic
#797BE3 #E379B0 #E3E179 #79E3AC
square
#797BE3 #E379B0 #E3E179 #79E3AC
split-complementary
#797BE3 #E3AC79 #B0E379
monochromatic
#272ABB #4649D8 #797BE3 #ACADEE #DEDFF8

Accessibility & contrast

On white

3.65
#797BE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#797BE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE3
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE3#FFFFFF#000000##000000
##797BE31.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#508AE7
Deuteranopia (green-blind)
#4882E1
Tritanopia (blue-blind)
#5391A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797be3;
/* rgb */ color: rgb(121, 123, 227);
/* oklch */ color: oklch(63.0% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#a5a1ec',
    500: '#797be3',
    950: '#000000',
  },
}
SCSS
$custom: #797be3;
$custom-light: #a5a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797be3",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 227
  },
  "hsl": {
    "h": 238.868,
    "s": 65.432,
    "l": 68.235
  },
  "oklch": {
    "l": 0.62969,
    "c": 0.15366,
    "h": 280.2
  },
  "luminance": 0.23777
}

Semantic roles & 50–950 ramp

primary
#797BE3
secondary
#ECEBCC
accent
#CA18CD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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