#796FAF#796FAF

#796FAF is a mid, moderate blue. Relative luminance 0.185; OKLCH L 57.7% C 0.097 H 290.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#796FAF
RGBrgb(121, 111, 175)
HSLhsl(249, 29%, 56%)
HSVhsv(249, 37%, 69%)
CMYKcmyk(30.9%, 36.6%, 0%, 31.4%)
CIE-LABlab(50.13, 18.68, -32.72)
CIE-LCHlch(50.13, 37.68, 299.73°)
OKLaboklab(57.74% 0.0335 -0.0913)
OKLCHoklch(57.74% 0.097 290.2)
XYZxyz(21.3055, 18.5285, 43.0030)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FAF #A5AF6F
analogous
#6F85AF #796FAF #996FAF
triadic
#796FAF #AF796F #6FAF79
tetradic
#796FAF #AF6F85 #A5AF6F #6FAF99
square
#796FAF #AF6F85 #A5AF6F #6FAF99
split-complementary
#796FAF #AF996F #85AF6F
monochromatic
#423A69 #5A5091 #796FAF #9E96C5 #C2BEDB

Accessibility & contrast

On white

4.46
#796FAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#796FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FAF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FAF#FFFFFF#000000##000000
##796FAF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D78B2
Deuteranopia (green-blind)
#5D76AD
Tritanopia (blue-blind)
#6C7A87
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796faf;
/* rgb */ color: rgb(121, 111, 175);
/* oklch */ color: oklch(57.7% 0.097 290.2);
Tailwind
colors: {
  custom: {
    50: '#a198c7',
    500: '#796faf',
    950: '#000000',
  },
}
SCSS
$custom: #796faf;
$custom-light: #a198c7;
$custom-dark: #000000;
JSON
{
  "hex": "#796faf",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 175
  },
  "hsl": {
    "h": 249.375,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57736,
    "c": 0.09725,
    "h": 290.2
  },
  "luminance": 0.18529
}

Semantic roles & 50–950 ramp

primary
#796FAF
secondary
#C6CAB0
accent
#C563B6
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#796FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva