#797718#797718

#797718 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.4% C 0.111 H 108.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#797718
RGBrgb(121, 119, 24)
HSLhsl(59, 67%, 28%)
HSVhsv(59, 80%, 47%)
CMYKcmyk(0%, 1.7%, 80.2%, 52.5%)
CIE-LABlab(48.67, -10.67, 48.29)
CIE-LCHlch(48.67, 49.45, 102.46°)
OKLaboklab(55.38% -0.0348 0.1053)
OKLCHoklch(55.38% 0.111 108.3)
XYZxyz(14.6474, 17.3250, 3.4365)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797718 #181A79
analogous
#794618 #797718 #4A7918
triadic
#797718 #187977 #771879
tetradic
#797718 #187946 #181A79 #79184A
square
#797718 #187946 #181A79 #79184A
split-complementary
#797718 #184A79 #461879
monochromatic
#1A1905 #46450E #797718 #ACA922 #D7D335

Accessibility & contrast

On white

4.70
#797718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#797718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797718
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797718#FFFFFF#000000##FFFFFF
##7977181.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#837520
Tritanopia (blue-blind)
#826F65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797718;
/* rgb */ color: rgb(121, 119, 24);
/* oklch */ color: oklch(55.4% 0.111 108.3);
Tailwind
colors: {
  custom: {
    50: '#a39e5e',
    500: '#797718',
    950: '#000000',
  },
}
SCSS
$custom: #797718;
$custom-light: #a39e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797718",
  "rgb": {
    "r": 121,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 58.763,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55382,
    "c": 0.11085,
    "h": 108.3
  },
  "luminance": 0.17325
}

Semantic roles & 50–950 ramp

primary
#797718
secondary
#3F41AE
accent
#42EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797718

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

Preview Lab → · Contrast checker → · Palette generator →

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