#796718#796718

#796718 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.7% C 0.097 H 95.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#796718
RGBrgb(121, 103, 24)
HSLhsl(49, 67%, 28%)
HSVhsv(49, 80%, 47%)
CMYKcmyk(0%, 14.9%, 80.2%, 52.5%)
CIE-LABlab(43.99, -1.62, 44.02)
CIE-LCHlch(43.99, 44.05, 92.11°)
OKLaboklab(51.67% -0.0093 0.0961)
OKLCHoklch(51.67% 0.097 95.5)
XYZxyz(12.9010, 13.8321, 2.8543)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796718 #182A79
analogous
#793618 #796718 #5A7918
triadic
#796718 #187967 #671879
tetradic
#796718 #187936 #182A79 #79185A
square
#796718 #187936 #182A79 #79185A
split-complementary
#796718 #185A79 #361879
monochromatic
#1A1605 #463C0E #796718 #AC9222 #D7B935

Accessibility & contrast

On white

5.58
#796718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#796718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796718
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796718#FFFFFF#000000##FFFFFF
##7967181.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736508
Deuteranopia (green-blind)
#776A1D
Tritanopia (blue-blind)
#835E58
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #796718;
/* rgb */ color: rgb(121, 103, 24);
/* oklch */ color: oklch(51.7% 0.097 95.5);
Tailwind
colors: {
  custom: {
    50: '#a3925c',
    500: '#796718',
    950: '#000000',
  },
}
SCSS
$custom: #796718;
$custom-light: #a3925c;
$custom-dark: #000000;
JSON
{
  "hex": "#796718",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 24
  },
  "hsl": {
    "h": 48.866,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51665,
    "c": 0.09659,
    "h": 95.5
  },
  "luminance": 0.13831
}

Semantic roles & 50–950 ramp

primary
#796718
secondary
#3F54AE
accent
#5EEA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796718

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

Preview Lab → · Contrast checker → · Palette generator →

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