#798CEB#798CEB

#798CEB is a light, vivid blue. Relative luminance 0.288; OKLCH L 66.7% C 0.142 H 273.4°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#798CEB
RGBrgb(121, 140, 235)
HSLhsl(230, 74%, 70%)
HSVhsv(230, 49%, 92%)
CMYKcmyk(48.5%, 40.4%, 0%, 7.8%)
CIE-LABlab(60.62, 18.49, -50.19)
CIE-LCHlch(60.62, 53.49, 290.23°)
OKLaboklab(66.73% 0.0085 -0.142)
OKLCHoklch(66.73% 0.142 273.4)
XYZxyz(32.2539, 28.8173, 82.4439)
Luminance0.2882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CEB #EBD879
analogous
#79C5EB #798CEB #9F79EB
triadic
#798CEB #EB798C #8CEB79
tetradic
#798CEB #EB79C5 #EBD879 #79EB9F
square
#798CEB #EB79C5 #EBD879 #79EB9F
split-complementary
#798CEB #EB9F79 #C5EB79
monochromatic
#1E3BCB #445EE3 #798CEB #AEBAF3 #E4E7FB

Accessibility & contrast

On white

3.10
#798CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#798CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CEB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CEB#FFFFFF#000000##000000
##798CEB1.003.106.766.76
#FFFFFF3.101.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6797EF
Deuteranopia (green-blind)
#5C8EE9
Tritanopia (blue-blind)
#4CA0B0
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #798ceb;
/* rgb */ color: rgb(121, 140, 235);
/* oklch */ color: oklch(66.7% 0.142 273.4);
Tailwind
colors: {
  custom: {
    50: '#a6adf2',
    500: '#798ceb',
    950: '#000000',
  },
}
SCSS
$custom: #798ceb;
$custom-light: #a6adf2;
$custom-dark: #000000;
JSON
{
  "hex": "#798ceb",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 235
  },
  "hsl": {
    "h": 230,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66734,
    "c": 0.14227,
    "h": 273.4
  },
  "luminance": 0.28819
}

Semantic roles & 50–950 ramp

primary
#798CEB
secondary
#F0EBD0
accent
#B50FD6
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798CEB

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

Preview Lab → · Contrast checker → · Palette generator →

#798CEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva