#796E18#796E18

#796E18 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.102 H 101.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#796E18
RGBrgb(121, 110, 24)
HSLhsl(53, 67%, 28%)
HSVhsv(53, 80%, 47%)
CMYKcmyk(0%, 9.1%, 80.2%, 52.5%)
CIE-LABlab(46.02, -5.64, 45.89)
CIE-LCHlch(46.02, 46.23, 97.00°)
OKLaboklab(53.27% -0.0207 0.1001)
OKLCHoklch(53.27% 0.102 101.7)
XYZxyz(13.6266, 15.2834, 3.0962)
Luminance0.1528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E18 #182379
analogous
#793D18 #796E18 #537918
triadic
#796E18 #18796E #6E1879
tetradic
#796E18 #18793D #182379 #791853
square
#796E18 #18793D #182379 #791853
split-complementary
#796E18 #185379 #3D1879
monochromatic
#1A1705 #46400E #796E18 #AC9C22 #D7C435

Accessibility & contrast

On white

5.18
#796E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#796E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E18
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E18#FFFFFF#000000##FFFFFF
##796E181.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A04
Deuteranopia (green-blind)
#7C6F1E
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e18;
/* rgb */ color: rgb(121, 110, 24);
/* oklch */ color: oklch(53.3% 0.102 101.7);
Tailwind
colors: {
  custom: {
    50: '#a3975d',
    500: '#796e18',
    950: '#000000',
  },
}
SCSS
$custom: #796e18;
$custom-light: #a3975d;
$custom-dark: #000000;
JSON
{
  "hex": "#796e18",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 24
  },
  "hsl": {
    "h": 53.196,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53274,
    "c": 0.10224,
    "h": 101.7
  },
  "luminance": 0.15283
}

Semantic roles & 50–950 ramp

primary
#796E18
secondary
#3F4CAE
accent
#51EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796E18

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

Preview Lab → · Contrast checker → · Palette generator →

#796E18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva