#797DFA#797DFA

#797DFA is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.8% C 0.182 H 278.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#797DFA
RGBrgb(121, 125, 250)
HSLhsl(238, 93%, 73%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(51.6%, 50%, 0%, 2%)
CIE-LABlab(57.69, 31.91, -63.16)
CIE-LCHlch(57.69, 70.77, 296.80°)
OKLaboklab(64.78% 0.0274 -0.1802)
OKLCHoklch(64.78% 0.182 278.6)
XYZxyz(32.4687, 25.6323, 93.6606)
Luminance0.2563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DFA #FAF679
analogous
#79BDFA #797DFA #B679FA
triadic
#797DFA #FA797D #7DFA79
tetradic
#797DFA #FA79BD #FAF679 #79FAB6
square
#797DFA #FA79BD #FAF679 #79FAB6
split-complementary
#797DFA #FAB679 #BDFA79
monochromatic
#0910F0 #3E44F8 #797DFA #B4B6FC #E2E2FE

Accessibility & contrast

On white

3.43
#797DFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#797DFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DFA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DFA#FFFFFF#000000##000000
##797DFA1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F90FE
Deuteranopia (green-blind)
#2F86F7
Tritanopia (blue-blind)
#4199B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797dfa;
/* rgb */ color: rgb(121, 125, 250);
/* oklch */ color: oklch(64.8% 0.182 278.6);
Tailwind
colors: {
  custom: {
    50: '#a8a2fd',
    500: '#797dfa',
    950: '#000000',
  },
}
SCSS
$custom: #797dfa;
$custom-light: #a8a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797dfa",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 250
  },
  "hsl": {
    "h": 238.14,
    "s": 92.806,
    "l": 72.745
  },
  "oklch": {
    "l": 0.64775,
    "c": 0.18226,
    "h": 278.6
  },
  "luminance": 0.25634
}

Semantic roles & 50–950 ramp

primary
#797DFA
secondary
#F6F5D5
accent
#DE00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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