#796418#796418

#796418 is a mid, moderate yellow. Relative luminance 0.132; OKLCH L 51.0% C 0.095 H 92.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#796418
RGBrgb(121, 100, 24)
HSLhsl(47, 67%, 28%)
HSVhsv(47, 80%, 47%)
CMYKcmyk(0%, 17.4%, 80.2%, 52.5%)
CIE-LABlab(43.13, 0.12, 43.22)
CIE-LCHlch(43.13, 43.22, 89.84°)
OKLaboklab(50.99% -0.0043 0.0944)
OKLCHoklch(50.99% 0.095 92.6)
XYZxyz(12.6079, 13.2460, 2.7566)
Luminance0.1325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796418 #182D79
analogous
#793318 #796418 #5D7918
triadic
#796418 #187964 #641879
tetradic
#796418 #187933 #182D79 #79185D
square
#796418 #187933 #182D79 #79185D
split-complementary
#796418 #185D79 #331879
monochromatic
#1A1505 #463A0E #796418 #AC8E22 #D7B435

Accessibility & contrast

On white

5.76
#796418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#796418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796418
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796418#FFFFFF#000000##FFFFFF
##7964181.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706209
Deuteranopia (green-blind)
#75681D
Tritanopia (blue-blind)
#835B55
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #796418;
/* rgb */ color: rgb(121, 100, 24);
/* oklch */ color: oklch(51.0% 0.095 92.6);
Tailwind
colors: {
  custom: {
    50: '#a38f5c',
    500: '#796418',
    950: '#000000',
  },
}
SCSS
$custom: #796418;
$custom-light: #a38f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#796418",
  "rgb": {
    "r": 121,
    "g": 100,
    "b": 24
  },
  "hsl": {
    "h": 47.01,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.09454,
    "h": 92.6
  },
  "luminance": 0.13245
}

Semantic roles & 50–950 ramp

primary
#796418
secondary
#3F57AE
accent
#63EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796418

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

Preview Lab → · Contrast checker → · Palette generator →

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