#796E17#796E17

#796E17 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.103 H 101.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#796E17
RGBrgb(121, 110, 23)
HSLhsl(53, 68%, 28%)
HSVhsv(53, 81%, 47%)
CMYKcmyk(0%, 9.1%, 81%, 52.5%)
CIE-LABlab(46.01, -5.68, 46.23)
CIE-LCHlch(46.01, 46.58, 97.00°)
OKLaboklab(53.27% -0.0209 0.1007)
OKLCHoklch(53.27% 0.103 101.7)
XYZxyz(13.6164, 15.2793, 3.0424)
Luminance0.1528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E17 #172279
analogous
#793D17 #796E17 #537917
triadic
#796E17 #17796E #6E1779
tetradic
#796E17 #17793D #172279 #791753
square
#796E17 #17793D #172279 #791753
split-complementary
#796E17 #175379 #3D1779
monochromatic
#1A1705 #463F0D #796E17 #AC9D21 #D8C532

Accessibility & contrast

On white

5.18
#796E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#796E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E17
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E17#FFFFFF#000000##FFFFFF
##796E171.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A03
Deuteranopia (green-blind)
#7C6F1E
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e17;
/* rgb */ color: rgb(121, 110, 23);
/* oklch */ color: oklch(53.3% 0.103 101.7);
Tailwind
colors: {
  custom: {
    50: '#a3975c',
    500: '#796e17',
    950: '#000000',
  },
}
SCSS
$custom: #796e17;
$custom-light: #a3975c;
$custom-dark: #000000;
JSON
{
  "hex": "#796e17",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 23
  },
  "hsl": {
    "h": 53.265,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53268,
    "c": 0.10279,
    "h": 101.7
  },
  "luminance": 0.15279
}

Semantic roles & 50–950 ramp

primary
#796E17
secondary
#3E4AAE
accent
#50EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796E17

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

Preview Lab → · Contrast checker → · Palette generator →

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