#797ABC#797ABC

#797ABC is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.6% C 0.100 H 282.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#797ABC
RGBrgb(121, 122, 188)
HSLhsl(239, 33%, 61%)
HSVhsv(239, 36%, 74%)
CMYKcmyk(35.6%, 35.1%, 0%, 26.3%)
CIE-LABlab(53.62, 15.61, -34.77)
CIE-LCHlch(53.62, 38.11, 294.18°)
OKLaboklab(60.61% 0.0213 -0.0972)
OKLCHoklch(60.61% 0.1 282.3)
XYZxyz(23.9193, 21.6141, 50.4789)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ABC #BCBB79
analogous
#799BBC #797ABC #9979BC
triadic
#797ABC #BC797A #7ABC79
tetradic
#797ABC #BC799B #BCBB79 #79BC99
square
#797ABC #BC799B #BCBB79 #79BC99
split-complementary
#797ABC #BC9979 #9BBC79
monochromatic
#3E3F7C #5354A5 #797ABC #A2A2D0 #CBCBE5

Accessibility & contrast

On white

3.95
#797ABC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#797ABC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ABC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ABC#FFFFFF#000000##000000
##797ABC1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6582BF
Deuteranopia (green-blind)
#627EBA
Tritanopia (blue-blind)
#678792
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797abc;
/* rgb */ color: rgb(121, 122, 188);
/* oklch */ color: oklch(60.6% 0.100 282.3);
Tailwind
colors: {
  custom: {
    50: '#a2a0d0',
    500: '#797abc',
    950: '#000000',
  },
}
SCSS
$custom: #797abc;
$custom-light: #a2a0d0;
$custom-dark: #000000;
JSON
{
  "hex": "#797abc",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 188
  },
  "hsl": {
    "h": 239.104,
    "s": 33.333,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60606,
    "c": 0.0995,
    "h": 282.3
  },
  "luminance": 0.21615
}

Semantic roles & 50–950 ramp

primary
#797ABC
secondary
#D5D5BC
accent
#AA39AC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #797ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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