#796218#796218

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

Color values

HEX#796218
RGBrgb(121, 98, 24)
HSLhsl(46, 67%, 28%)
HSVhsv(46, 80%, 47%)
CMYKcmyk(0%, 19%, 80.2%, 52.5%)
CIE-LABlab(42.56, 1.29, 42.69)
CIE-LCHlch(42.56, 42.71, 88.27°)
OKLaboklab(50.54% -0.001 0.0933)
OKLCHoklch(50.54% 0.093 90.6)
XYZxyz(12.4184, 12.8670, 2.6935)
Luminance0.1287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796218 #182F79
analogous
#793118 #796218 #5F7918
triadic
#796218 #187962 #621879
tetradic
#796218 #187931 #182F79 #79185F
square
#796218 #187931 #182F79 #79185F
split-complementary
#796218 #185F79 #311879
monochromatic
#1A1505 #46390E #796218 #AC8B22 #D7B035

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796218#FFFFFF#000000##FFFFFF
##7962181.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)
#6E610A
Deuteranopia (green-blind)
#74671C
Tritanopia (blue-blind)
#845954
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #796218;
/* rgb */ color: rgb(121, 98, 24);
/* oklch */ color: oklch(50.5% 0.093 90.6);
Tailwind
colors: {
  custom: {
    50: '#a38e5b',
    500: '#796218',
    950: '#000000',
  },
}
SCSS
$custom: #796218;
$custom-light: #a38e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#796218",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 24
  },
  "hsl": {
    "h": 45.773,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50537,
    "c": 0.09332,
    "h": 90.6
  },
  "luminance": 0.12866
}

Semantic roles & 50–950 ramp

primary
#796218
secondary
#3F59AE
accent
#67EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796218

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

Preview Lab → · Contrast checker → · Palette generator →

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