#796217#796217

#796217 is a mid, moderate yellow. Relative luminance 0.129; OKLCH L 50.5% C 0.094 H 90.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#796217
RGBrgb(121, 98, 23)
HSLhsl(46, 68%, 28%)
HSVhsv(46, 81%, 47%)
CMYKcmyk(0%, 19%, 81%, 52.5%)
CIE-LABlab(42.56, 1.25, 43.07)
CIE-LCHlch(42.56, 43.09, 88.34°)
OKLaboklab(50.53% -0.0012 0.0939)
OKLCHoklch(50.53% 0.094 90.8)
XYZxyz(12.4082, 12.8630, 2.6397)
Luminance0.1286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796217 #172E79
analogous
#793117 #796217 #5F7917
triadic
#796217 #177962 #621779
tetradic
#796217 #177931 #172E79 #79175F
square
#796217 #177931 #172E79 #79175F
split-complementary
#796217 #175F79 #311779
monochromatic
#1A1505 #46380D #796217 #AC8C21 #D8B132

Accessibility & contrast

On white

5.88
#796217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#796217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796217
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796217#FFFFFF#000000##FFFFFF
##7962171.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6108
Deuteranopia (green-blind)
#74671C
Tritanopia (blue-blind)
#845954
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #796217;
/* rgb */ color: rgb(121, 98, 23);
/* oklch */ color: oklch(50.5% 0.094 90.8);
Tailwind
colors: {
  custom: {
    50: '#a38e5b',
    500: '#796217',
    950: '#000000',
  },
}
SCSS
$custom: #796217;
$custom-light: #a38e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#796217",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 45.918,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5053,
    "c": 0.0939,
    "h": 90.8
  },
  "luminance": 0.12862
}

Semantic roles & 50–950 ramp

primary
#796217
secondary
#3E58AE
accent
#66EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796217

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

Preview Lab → · Contrast checker → · Palette generator →

#796217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva