#797BC0#797BC0

#797BC0 is a mid, moderate blue. Relative luminance 0.220; OKLCH L 61.0% C 0.104 H 281.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#797BC0
RGBrgb(121, 123, 192)
HSLhsl(238, 36%, 61%)
HSVhsv(238, 37%, 75%)
CMYKcmyk(37%, 35.9%, 0%, 24.7%)
CIE-LABlab(54.06, 16.12, -36.35)
CIE-LCHlch(54.06, 39.76, 293.91°)
OKLaboklab(61.01% 0.0209 -0.1018)
OKLCHoklch(61.01% 0.104 281.6)
XYZxyz(24.4799, 22.0358, 52.8225)
Luminance0.2204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC0 #C0BE79
analogous
#799FC0 #797BC0 #9B79C0
triadic
#797BC0 #C0797B #7BC079
tetradic
#797BC0 #C0799F #C0BE79 #79C09B
square
#797BC0 #C0799F #C0BE79 #79C09B
split-complementary
#797BC0 #C09B79 #9FC079
monochromatic
#3D3F82 #5153AB #797BC0 #A3A4D4 #CCCDE7

Accessibility & contrast

On white

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

On black

5.41
#797BC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC0
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC0#FFFFFF#000000##000000
##797BC01.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6584C3
Deuteranopia (green-blind)
#617FBE
Tritanopia (blue-blind)
#658894
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bc0;
/* rgb */ color: rgb(121, 123, 192);
/* oklch */ color: oklch(61.0% 0.104 281.6);
Tailwind
colors: {
  custom: {
    50: '#a2a1d3',
    500: '#797bc0',
    950: '#000000',
  },
}
SCSS
$custom: #797bc0;
$custom-light: #a2a1d3;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc0",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 192
  },
  "hsl": {
    "h": 238.31,
    "s": 36.041,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61012,
    "c": 0.10391,
    "h": 281.6
  },
  "luminance": 0.22037
}

Semantic roles & 50–950 ramp

primary
#797BC0
secondary
#D8D7BD
accent
#AC37AF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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