#797CE6#797CE6

#797CE6 is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.3% C 0.156 H 279.7°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#797CE6
RGBrgb(121, 124, 230)
HSLhsl(238, 69%, 69%)
HSVhsv(238, 47%, 90%)
CMYKcmyk(47.4%, 46.1%, 0%, 9.8%)
CIE-LABlab(56.28, 26.49, -54.31)
CIE-LCHlch(56.28, 60.43, 296.00°)
OKLaboklab(63.34% 0.0264 -0.1542)
OKLCHoklch(63.34% 0.156 279.7)
XYZxyz(29.3714, 24.1919, 77.9694)
Luminance0.2419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE6 #E6E379
analogous
#79B3E6 #797CE6 #AD79E6
triadic
#797CE6 #E6797C #7CE679
tetradic
#797CE6 #E679B3 #E6E379 #79E6AD
square
#797CE6 #E679B3 #E6E379 #79E6AD
split-complementary
#797CE6 #E6AD79 #B3E679
monochromatic
#2428C1 #454ADC #797CE6 #ADAEF0 #E0E1F9

Accessibility & contrast

On white

3.60
#797CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#797CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CE6
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CE6#FFFFFF#000000##000000
##797CE61.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8BEA
Deuteranopia (green-blind)
#4783E4
Tritanopia (blue-blind)
#5192A6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797ce6;
/* rgb */ color: rgb(121, 124, 230);
/* oklch */ color: oklch(63.3% 0.156 279.7);
Tailwind
colors: {
  custom: {
    50: '#a6a1ee',
    500: '#797ce6',
    950: '#000000',
  },
}
SCSS
$custom: #797ce6;
$custom-light: #a6a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce6",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 230
  },
  "hsl": {
    "h": 238.349,
    "s": 68.553,
    "l": 68.824
  },
  "oklch": {
    "l": 0.63339,
    "c": 0.15646,
    "h": 279.7
  },
  "luminance": 0.24193
}

Semantic roles & 50–950 ramp

primary
#797CE6
secondary
#EEEDCD
accent
#CB15D0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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