#797818#797818

#797818 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.6% C 0.112 H 108.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#797818
RGBrgb(121, 120, 24)
HSLhsl(59, 67%, 28%)
HSVhsv(59, 80%, 47%)
CMYKcmyk(0%, 0.8%, 80.2%, 52.5%)
CIE-LABlab(48.96, -11.22, 48.56)
CIE-LCHlch(48.96, 49.84, 103.01°)
OKLaboklab(55.62% -0.0363 0.1058)
OKLCHoklch(55.62% 0.112 108.9)
XYZxyz(14.7671, 17.5643, 3.4764)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797818 #181979
analogous
#794718 #797818 #497918
triadic
#797818 #187978 #781879
tetradic
#797818 #187947 #181979 #791849
square
#797818 #187947 #181979 #791849
split-complementary
#797818 #184979 #471879
monochromatic
#1A1905 #46450E #797818 #ACAB22 #D7D535

Accessibility & contrast

On white

4.65
#797818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#797818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797818
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797818#FFFFFF#000000##FFFFFF
##7978181.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#847620
Tritanopia (blue-blind)
#827066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797818;
/* rgb */ color: rgb(121, 120, 24);
/* oklch */ color: oklch(55.6% 0.112 108.9);
Tailwind
colors: {
  custom: {
    50: '#a39e5e',
    500: '#797818',
    950: '#000000',
  },
}
SCSS
$custom: #797818;
$custom-light: #a39e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797818",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 59.381,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55618,
    "c": 0.11189,
    "h": 108.9
  },
  "luminance": 0.17564
}

Semantic roles & 50–950 ramp

primary
#797818
secondary
#3F40AE
accent
#40EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797818

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

Preview Lab → · Contrast checker → · Palette generator →

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