#797AE6#797AE6

#797AE6 is a light, vivid blue. Relative luminance 0.237; OKLCH L 63.0% C 0.159 H 280.4°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#797AE6
RGBrgb(121, 122, 230)
HSLhsl(239, 69%, 69%)
HSVhsv(239, 47%, 90%)
CMYKcmyk(47.4%, 47%, 0%, 9.8%)
CIE-LABlab(55.78, 27.68, -55.11)
CIE-LCHlch(55.78, 61.67, 296.67°)
OKLaboklab(62.96% 0.0287 -0.1565)
OKLCHoklch(62.96% 0.159 280.4)
XYZxyz(29.1233, 23.6957, 77.8867)
Luminance0.2370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AE6 #E6E579
analogous
#79B1E6 #797AE6 #AF79E6
triadic
#797AE6 #E6797A #7AE679
tetradic
#797AE6 #E679B1 #E6E579 #79E6AF
square
#797AE6 #E679B1 #E6E579 #79E6AF
split-complementary
#797AE6 #E6AF79 #B1E679
monochromatic
#2425C1 #4547DC #797AE6 #ADADF0 #E0E0F9

Accessibility & contrast

On white

3.66
#797AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#797AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AE6
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AE6#FFFFFF#000000##000000
##797AE61.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8AEA
Deuteranopia (green-blind)
#4482E4
Tritanopia (blue-blind)
#5291A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ae6;
/* rgb */ color: rgb(121, 122, 230);
/* oklch */ color: oklch(63.0% 0.159 280.4);
Tailwind
colors: {
  custom: {
    50: '#a6a0ee',
    500: '#797ae6',
    950: '#000000',
  },
}
SCSS
$custom: #797ae6;
$custom-light: #a6a0ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797ae6",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 230
  },
  "hsl": {
    "h": 239.45,
    "s": 68.553,
    "l": 68.824
  },
  "oklch": {
    "l": 0.62963,
    "c": 0.15917,
    "h": 280.4
  },
  "luminance": 0.23697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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