#796618#796618

#796618 is a mid, moderate yellow. Relative luminance 0.136; OKLCH L 51.4% C 0.096 H 94.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#796618
RGBrgb(121, 102, 24)
HSLhsl(48, 67%, 28%)
HSVhsv(48, 80%, 47%)
CMYKcmyk(0%, 15.7%, 80.2%, 52.5%)
CIE-LABlab(43.70, -1.04, 43.75)
CIE-LCHlch(43.70, 43.77, 91.37°)
OKLaboklab(51.44% -0.0076 0.0956)
OKLCHoklch(51.44% 0.096 94.6)
XYZxyz(12.8021, 13.6344, 2.8214)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796618 #182B79
analogous
#793518 #796618 #5B7918
triadic
#796618 #187966 #661879
tetradic
#796618 #187935 #182B79 #79185B
square
#796618 #187935 #182B79 #79185B
split-complementary
#796618 #185B79 #351879
monochromatic
#1A1605 #463B0E #796618 #AC9122 #D7B735

Accessibility & contrast

On white

5.63
#796618 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#796618 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796618
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796618#FFFFFF#000000##FFFFFF
##7966181.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726408
Deuteranopia (green-blind)
#766A1D
Tritanopia (blue-blind)
#835D57
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #796618;
/* rgb */ color: rgb(121, 102, 24);
/* oklch */ color: oklch(51.4% 0.096 94.6);
Tailwind
colors: {
  custom: {
    50: '#a3915c',
    500: '#796618',
    950: '#000000',
  },
}
SCSS
$custom: #796618;
$custom-light: #a3915c;
$custom-dark: #000000;
JSON
{
  "hex": "#796618",
  "rgb": {
    "r": 121,
    "g": 102,
    "b": 24
  },
  "hsl": {
    "h": 48.247,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51438,
    "c": 0.09588,
    "h": 94.6
  },
  "luminance": 0.13634
}

Semantic roles & 50–950 ramp

primary
#796618
secondary
#3F55AE
accent
#60EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796618

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

Preview Lab → · Contrast checker → · Palette generator →

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