#797ACF#797ACF

#797ACF is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.6% C 0.127 H 281.5°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#797ACF
RGBrgb(121, 122, 207)
HSLhsl(239, 47%, 64%)
HSVhsv(239, 42%, 81%)
CMYKcmyk(41.5%, 41.1%, 0%, 18.8%)
CIE-LABlab(54.54, 20.95, -44.13)
CIE-LCHlch(54.54, 48.85, 295.39°)
OKLaboklab(61.62% 0.0253 -0.1244)
OKLCHoklch(61.62% 0.127 281.5)
XYZxyz(26.1039, 22.4879, 61.9846)
Luminance0.2249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ACF #CFCE79
analogous
#79A5CF #797ACF #A379CF
triadic
#797ACF #CF797A #7ACF79
tetradic
#797ACF #CF79A5 #CFCE79 #79CFA3
square
#797ACF #CF79A5 #CFCE79 #79CFA3
split-complementary
#797ACF #CFA379 #A5CF79
monochromatic
#363797 #4C4DBF #797ACF #A6A7DF #D3D3EF

Accessibility & contrast

On white

3.82
#797ACF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#797ACF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ACF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ACF#FFFFFF#000000##000000
##797ACF1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C86D2
Deuteranopia (green-blind)
#577FCD
Tritanopia (blue-blind)
#5F8B9A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797acf;
/* rgb */ color: rgb(121, 122, 207);
/* oklch */ color: oklch(61.6% 0.127 281.5);
Tailwind
colors: {
  custom: {
    50: '#a3a0de',
    500: '#797acf',
    950: '#000000',
  },
}
SCSS
$custom: #797acf;
$custom-light: #a3a0de;
$custom-dark: #000000;
JSON
{
  "hex": "#797acf",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 207
  },
  "hsl": {
    "h": 239.302,
    "s": 47.253,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61618,
    "c": 0.12698,
    "h": 281.5
  },
  "luminance": 0.22489
}

Semantic roles & 50–950 ramp

primary
#797ACF
secondary
#E1E0C3
accent
#B92BBB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797ACF

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

Preview Lab → · Contrast checker → · Palette generator →

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