#796118#796118

#796118 is a mid, moderate yellow. Relative luminance 0.127; OKLCH L 50.3% C 0.093 H 89.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#796118
RGBrgb(121, 97, 24)
HSLhsl(45, 67%, 28%)
HSVhsv(45, 80%, 47%)
CMYKcmyk(0%, 19.8%, 80.2%, 52.5%)
CIE-LABlab(42.28, 1.88, 42.43)
CIE-LCHlch(42.28, 42.47, 87.46°)
OKLaboklab(50.31% 0.0007 0.0927)
OKLCHoklch(50.31% 0.093 89.6)
XYZxyz(12.3255, 12.6811, 2.6625)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796118 #183079
analogous
#793018 #796118 #607918
triadic
#796118 #187961 #611879
tetradic
#796118 #187930 #183079 #791860
square
#796118 #187930 #183079 #791860
split-complementary
#796118 #186079 #301879
monochromatic
#1A1405 #46380E #796118 #AC8A22 #D7AF35

Accessibility & contrast

On white

5.94
#796118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#796118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796118
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796118#FFFFFF#000000##FFFFFF
##7961181.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D600A
Deuteranopia (green-blind)
#73671C
Tritanopia (blue-blind)
#845853
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #796118;
/* rgb */ color: rgb(121, 97, 24);
/* oklch */ color: oklch(50.3% 0.093 89.6);
Tailwind
colors: {
  custom: {
    50: '#a38d5b',
    500: '#796118',
    950: '#000000',
  },
}
SCSS
$custom: #796118;
$custom-light: #a38d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#796118",
  "rgb": {
    "r": 121,
    "g": 97,
    "b": 24
  },
  "hsl": {
    "h": 45.155,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50313,
    "c": 0.09274,
    "h": 89.6
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#796118
secondary
#3F5AAE
accent
#69EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796118

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

Preview Lab → · Contrast checker → · Palette generator →

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