#797BC1#797BC1

#797BC1 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.1% C 0.105 H 281.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#797BC1
RGBrgb(121, 123, 193)
HSLhsl(238, 37%, 62%)
HSVhsv(238, 37%, 76%)
CMYKcmyk(37.3%, 36.3%, 0%, 24.3%)
CIE-LABlab(54.11, 16.40, -36.85)
CIE-LCHlch(54.11, 40.33, 293.99°)
OKLaboklab(61.06% 0.0211 -0.1032)
OKLCHoklch(61.06% 0.105 281.6)
XYZxyz(24.5910, 22.0802, 53.4080)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC1 #C1BF79
analogous
#799FC1 #797BC1 #9B79C1
triadic
#797BC1 #C1797B #7BC179
tetradic
#797BC1 #C1799F #C1BF79 #79C19B
square
#797BC1 #C1799F #C1BF79 #79C19B
split-complementary
#797BC1 #C19B79 #9FC179
monochromatic
#3D3F83 #5053AD #797BC1 #A3A4D4 #CDCDE8

Accessibility & contrast

On white

3.88
#797BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#797BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC1#FFFFFF#000000##000000
##797BC11.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6484C4
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#658895
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bc1;
/* rgb */ color: rgb(121, 123, 193);
/* oklch */ color: oklch(61.1% 0.105 281.6);
Tailwind
colors: {
  custom: {
    50: '#a2a1d4',
    500: '#797bc1',
    950: '#000000',
  },
}
SCSS
$custom: #797bc1;
$custom-light: #a2a1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc1",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 193
  },
  "hsl": {
    "h": 238.333,
    "s": 36.735,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61064,
    "c": 0.10536,
    "h": 281.6
  },
  "luminance": 0.22081
}

Semantic roles & 50–950 ramp

primary
#797BC1
secondary
#D8D8BE
accent
#AC36B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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