#797CE4#797CE4

#797CE4 is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.2% C 0.154 H 279.8°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#797CE4
RGBrgb(121, 124, 228)
HSLhsl(238, 66%, 68%)
HSVhsv(238, 47%, 89%)
CMYKcmyk(46.9%, 45.6%, 0%, 10.6%)
CIE-LABlab(56.17, 25.89, -53.37)
CIE-LCHlch(56.17, 59.32, 295.88°)
OKLaboklab(63.22% 0.0262 -0.1514)
OKLCHoklch(63.22% 0.154 279.8)
XYZxyz(29.0921, 24.0802, 76.4988)
Luminance0.2408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE4 #E4E179
analogous
#79B1E4 #797CE4 #AB79E4
triadic
#797CE4 #E4797C #7CE479
tetradic
#797CE4 #E479B1 #E4E179 #79E4AB
square
#797CE4 #E479B1 #E4E179 #79E4AB
split-complementary
#797CE4 #E4AB79 #B1E479
monochromatic
#262ABD #464ADA #797CE4 #ACAEEE #DFE0F9

Accessibility & contrast

On white

3.61
#797CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#797CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CE4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CE4#FFFFFF#000000##000000
##797CE41.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#518BE8
Deuteranopia (green-blind)
#4983E2
Tritanopia (blue-blind)
#5392A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797ce4;
/* rgb */ color: rgb(121, 124, 228);
/* oklch */ color: oklch(63.2% 0.154 279.8);
Tailwind
colors: {
  custom: {
    50: '#a5a1ed',
    500: '#797ce4',
    950: '#000000',
  },
}
SCSS
$custom: #797ce4;
$custom-light: #a5a1ed;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce4",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 228
  },
  "hsl": {
    "h": 238.318,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63219,
    "c": 0.15369,
    "h": 279.8
  },
  "luminance": 0.24082
}

Semantic roles & 50–950 ramp

primary
#797CE4
secondary
#ECECCC
accent
#C917CE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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