#797BE6#797BE6

#797BE6 is a light, vivid blue. Relative luminance 0.239; OKLCH L 63.2% C 0.158 H 280.1°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#797BE6
RGBrgb(121, 123, 230)
HSLhsl(239, 69%, 69%)
HSVhsv(239, 47%, 90%)
CMYKcmyk(47.4%, 46.5%, 0%, 9.8%)
CIE-LABlab(56.03, 27.08, -54.71)
CIE-LCHlch(56.03, 61.05, 296.34°)
OKLaboklab(63.15% 0.0276 -0.1554)
OKLCHoklch(63.15% 0.158 280.1)
XYZxyz(29.2467, 23.9425, 77.9279)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE6 #E6E479
analogous
#79B2E6 #797BE6 #AE79E6
triadic
#797BE6 #E6797B #7BE679
tetradic
#797BE6 #E679B2 #E6E479 #79E6AE
square
#797BE6 #E679B2 #E6E479 #79E6AE
split-complementary
#797BE6 #E6AE79 #B2E679
monochromatic
#2427C1 #4548DC #797BE6 #ADAEF0 #E0E1F9

Accessibility & contrast

On white

3.63
#797BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#797BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE6#FFFFFF#000000##000000
##797BE61.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8AEA
Deuteranopia (green-blind)
#4582E4
Tritanopia (blue-blind)
#5292A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797be6;
/* rgb */ color: rgb(121, 123, 230);
/* oklch */ color: oklch(63.2% 0.158 280.1);
Tailwind
colors: {
  custom: {
    50: '#a6a1ee',
    500: '#797be6',
    950: '#000000',
  },
}
SCSS
$custom: #797be6;
$custom-light: #a6a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797be6",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 230
  },
  "hsl": {
    "h": 238.899,
    "s": 68.553,
    "l": 68.824
  },
  "oklch": {
    "l": 0.63151,
    "c": 0.15781,
    "h": 280.1
  },
  "luminance": 0.23944
}

Semantic roles & 50–950 ramp

primary
#797BE6
secondary
#EEEDCD
accent
#CD15D0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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